Liking cljdoc? Tell your friends :D

malli.provider


-decodedclj/s

(-decoded {:keys [values]} vp t)
source

-hintedclj/s

(-hinted x hint)
source

-inferrerclj/s

(-inferrer options)
source

-map-of-acceptclj/s

(-map-of-accept stats)
source

-map-schemaclj/s

(-map-schema {tc :count :as stats}
             schema
             {:keys [:malli.provider/infer :malli.provider/map-of-threshold
                     :malli.provider/map-of-accept]
              :or {map-of-accept -map-of-accept}
              :as options})
source

-preferencesclj/s

source

-safe?clj/s

(-safe? f & args)
source

-schemaclj/s

(-schema stats)
(-schema {:keys [types] :as stats}
         {:keys [:malli.provider/value-decoders] :as options})
source

-sequential-schemaclj/s

(-sequential-schema
  {tc :count :as stats}
  type
  schema
  {:keys [:malli.provider/infer :malli.provider/tuple-threshold] :as options})
source

-value-hintclj/s

(-value-hint x)
source

-value-schemaclj/s

(-value-schema {:keys [schemas hints] :as stats})
source

provideclj/s

(provide xs)
(provide xs options)

Given an sequence of example values, returns a Schema that can all values are valid against. For better performance, use provider instead. See provider for available options.

Given an sequence of example values, returns a Schema that can all values are valid against.
For better performance, use [[provider]] instead. See [[provider]] for available options.
sourceraw docstring

providerclj/s

(provider)
(provider options)

Returns a inferring function of values -> schema. Supports the following options:

  • `:malli.provider/tuple-threshold, how many identical value schemas need for :tuple
  • `:malli.provider/map-of-threshold, how many identical value schemas need for :map-of
  • :malli.provider/map-of-accept, function of typestats -> boolean` to identify :map-of
  • :malli.provider/value-decoders, function oftype -> target-type -> value -> decoded-value`
Returns a inferring function of `values -> schema`. Supports the following options:

- `:malli.provider/tuple-threshold, how many identical value schemas need for :tuple
- `:malli.provider/map-of-threshold, how many identical value schemas need for :map-of
- `:malli.provider/map-of-accept, function of type `stats -> boolean` to identify :map-of
- `:malli.provider/value-decoders, function of `type -> target-type -> value -> decoded-value`
sourceraw docstring

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

× close