How to use Function Schemas in CLJS? #649
Unanswered
sandudorogan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I love the static type checking feature! Unfortunately, I have been unable to use it in CLJS, no matter what I try. It errors out when using run time symbols in the fn schema. Judging by the doc page, the CLJS implementation is not yet mature enough. But seeing the code in
src/malli/dev/cljs.clj
gives me hope.Looking through the PR that introduces CLJS support: #604, I see that it ultimately had the same problem. But then #611 promises to fix it. The question now becomes: am I using it wrong or is there a bug somewhere? I don't understand the code it's using, which is why I am writing this now.
I am using
shadow-cljs
to manage frontend. The following code is what I tried (and failed) to make this work.I have tried the
^:dev/before-load
meta as well.What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions