Liking cljdoc? Tell your friends :D

typed.cljc.checker.check.fn-methods


check-fn-methodsclj

(check-fn-methods mthods expected opt opts)

check-fniclj

(check-fni expected
           mthods
           {:keys [validate-expected-fn self-name] :as opt}
           opts)

Check a vector of :method AST nodes mthods against an expected type that is a possibly-polymorphic function intersection.

Returns a vector in the same order as the passed in methods, but each method replaced with a vector of type checked methods.

Check a vector of :method AST nodes mthods against
an expected type that is a possibly-polymorphic function
intersection.

Returns a vector in the same order as the passed in methods,
but each method replaced with a vector of type checked methods.
raw docstring

expected-for-methodclj

(expected-for-method {:keys [variadic?] :as method}
                     {:keys [dom rest drest kws pdot prest] :as f}
                     all-methods
                     opts)

Takes a :fn-method or :method AST node and a single Function arity type, and returns the Function if the :method node should be checked against the Function, otherwise returns nil.

Takes a :fn-method or :method AST node and a single Function arity type,
and returns the Function if the :method node should be checked
against the Function, otherwise returns nil.
raw docstring

function-type-union?clj


function-type?clj


function-typesclj

(function-types expected opts)

method->fixed-arityclj

(method->fixed-arity {:keys [fixed-arity] :as method})

method-return?clj

(method-return? opts)

method?clj


methods?clj


opt-map?clj

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

× close