Fork me on GitHub
#malli
<
2020-12-01
>
mynomoto15:12:36

About the clj-kondo integration, is malli annotations compatible with the clj-kondo ones? As in if something is typed string on malli and is passed to a core function that only accepts numbers, will it show as a warning?

borkdude15:12:33

@mynomoto this doesn't work automatically, you should execute some code to make malli spit out type information to a clj-kondo config directory and you should opt in to this config dir via :config-paths

mynomoto15:12:06

I'm assuming that the developer did the correct project configuration. The question is more about if a malli string is a clj-kondo string when doing the type inference.

mynomoto15:12:54

This is great, thanks! I was wondering if a project to add malli type annotations to core functions would be useful for type inference but I'm glad that it is not necessary.