Fork me on GitHub
#core-typed
<
2022-06-06
>
J13:06:11

Hi, what the way to deal with this error: (use typedclojure with malli)

ambrosebs16:06:36

We need an annotation for update, it's missing in typedclojure.

ambrosebs16:06:18

This is a case where we could use finer grained backdoors to the type system. The current workaround is to use (t/ann ^:no-check ...) on the var/s that contain update

ambrosebs16:06:50

possibly something like (^::t/unchecked-fn update ...) so the args are checked but not the application itself.

ambrosebs16:06:07

Try this as a workaround in https://github.com/typedclojure/typedclojure/blob/main/CHANGELOG.md#1030-20220504:

(^{::t/unsafe-cast t/Nothing} ^::t/ignore update ...)

J17:06:49

Thank @U055XFK8V for your answers. I will try that.