Fork me on GitHub
#cljs-dev
<
2019-07-07
>
lilactown17:07:12

is it possible to use the CLJS analyzer to do some localized custom type checking? I want to be able to analyze a form like:

(react/createElement "div" nil
  (if condition
    [:div "TRUE"]
    [:div "FALSE"]))
and know that the (if ...) returns not-a-React-element