Liking cljdoc? Tell your friends :D

malli.instrument.cljs


-checkclj

(-check)
source

-collect!clj

(-collect! simple-name {:keys [meta] :as var-map})
source

-collect!*clj

(-collect!* {:keys [ns]})
source

-collect-all-nsclj

(-collect-all-ns)
source

-default-schema-keysclj

source

-emit-checkclj

(-emit-check {:keys [schema]} fn-sym)
source

-emit-instrument-fnclj

(-emit-instrument-fn env
                     {:keys [gen filters report] :as instrument-opts}
                     {:keys [schema] :as schema-map}
                     ns-sym
                     fn-sym)
source

-emit-multi-arity-instrumentation-codeclj

(-emit-multi-arity-instrumentation-code fn-sym schema-map schema max-fixed-args)
source

-emit-replace-var-codeclj

(-emit-replace-var-code fn-sym fn-var-meta schema-map schema)
source

-emit-unstrument-fnclj

(-emit-unstrument-fn env {:keys [schema filters] :as opts} ns-sym fn-sym)
source

-emit-variadic-instrumented-fnclj

(-emit-variadic-instrumented-fn fn-sym schema-map max-fixed-args)
source

-filter-nscljs

(-filter-ns & ns)
source

-filter-varcljs

(-filter-var f)
source

-instrumentclj

(-instrument env {:keys [data] :or {data (m/function-schemas :cljs)} :as opts})
source

-mock-cljs-schemaclj

(-mock-cljs-schema schema)

Takes malli schema data and replaces all non default schemas with :any

Takes malli schema data and replaces all non default schemas with :any
sourceraw docstring

-sequentialclj

(-sequential x)
source

-unstrumentclj

(-unstrument env opts)
source

checkclj/smacro

(check)

Checks all registered function schemas using generative testing. Returns nil or a map of symbol -> explanation in case of errors.

Checks all registered function schemas using generative testing.
Returns nil or a map of symbol -> explanation in case of errors.
sourceraw docstring

collect!clj/smacro

(collect!)
(collect! args-map)

Reads all public Vars from a given namespace(s) and registers a function (var) schema if :malli/schema metadata is present. The following metadata key can be used:

keydescription
:malli/schemafunction schema
:malli/scopeoptional set of scope definitions, defaults to #{:input :output}
:malli/reportoptional side-effecting function of key data -> any to report problems, defaults to m/-fail!
:malli/genoptional value true or function of schema -> schema -> value to be invoked on the args to get the return value
Reads all public Vars from a given namespace(s) and registers a function (var) schema if `:malli/schema`
metadata is present. The following metadata key can be used:

| key             | description |
| ----------------|-------------|
| `:malli/schema` | function schema
| `:malli/scope`  | optional set of scope definitions, defaults to `#{:input :output}`
| `:malli/report` | optional side-effecting function of `key data -> any` to report problems, defaults to `m/-fail!`
| `:malli/gen`    | optional value `true` or function of `schema -> schema -> value` to be invoked on the args to get the return value
sourceraw docstring

collect-all!clj/smacro

(collect-all!)
source

instrument!clj/smacro

(instrument!)
(instrument! opts)

Applies instrumentation for a filtered set of function Vars (e.g. defns). See malli.core/-instrument for possible options.

Applies instrumentation for a filtered set of function Vars (e.g. `defn`s).
See [[malli.core/-instrument]] for possible options.
sourceraw docstring

instrumented-varscljs

source

meta-fncljs

(meta-fn f m)
source

perform-checkcljs

(perform-check schema f)
source

unstrument!clj/smacro

(unstrument!)
(unstrument! opts)

Removes instrumentation from a filtered set of function Vars (e.g. defns). See malli.core/-instrument for possible options.

Removes instrumentation from a filtered set of function Vars (e.g. `defn`s).
See [[malli.core/-instrument]] for possible options.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close