defn-typed without -> reports "expected ->" and the rest of the file still lints
(before, clj-kondo printed "Can't parse " and dropped every other finding of that file).io.github.hyperfocusdisordered/defn-typed); library code unchanged since 0.1.1.build.clj (clojure -T:build jar | deploy), GitHub Actions CI (clj, cljs, clj-kondo).:default in the row type's own props, type first: :qty [:int {:min 1 :default 1}]
(malli's schema default). defn-typed marks such a row {:optional true} itself
(defaults-optional, nested maps included); with-defaults reads the type's props.:default in a row's entry props (key [{:default v} schema]) = compile error and clj-kondo
error naming the fix; entry props stay for {:optional true} without a default.defaulted-required-keys, defaulted-key-rule and malli-reasons' defaulted-key line;
malli-fns no longer returns :form. Added: schema-props, entry-default-paths,
entry-default-rule, defaults-optional.defn-typed + defmeta, extracted from a production Clojure/ClojureScript app.check-var, check-vars, check-ns, case-vars, registered-vars,
undefined-metas, forget-ns!, deftests!, test-ns!, test-var!, malli-reasons,
malli-fns, *trace-cases*, with-defaults; legacy tests.resources/clj-kondo.exports/io.github.hyperfocusdisordered/defn-typed/.Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |