Liking cljdoc? Tell your friends :D

malli.instrument.cljs


-checkclj

(-check)
source

-collect!clj

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

-collect-all-nsclj

(-collect-all-ns)
source

-emit-checkclj

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

-emit-instrument-fnclj

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

-emit-unstrument-fnclj

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

-filter-nscljs

(-filter-ns & ns)
source

-filter-varcljs

(-filter-var f)
source

-instrumentclj

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

-sequentialclj

(-sequential x)
source

-unstrumentclj

(-unstrument 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! {:keys [ns]})

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

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

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