(goog-typedef sym docstring)
Define a custom type for use in JSDoc type annotations.
docstring can be a simple type expression:
(good-typedef my-vector "{!IVector}")
Or you can use other tags by manually specifying a typedef tag:
(good-typedef my-string-array "@typedef {!Array<string>} @implements {SomeProtocol}")
Each annotation must occur on its own line with a space separating the tag and its type-expression
Define a custom type for use in JSDoc type annotations. docstring can be a simple type expression: `(good-typedef my-vector "{!IVector}")` Or you can use other tags by manually specifying a typedef tag: `(good-typedef my-string-array "@typedef {!Array<string>} @implements {SomeProtocol}")` Each annotation must occur on its own line with a space separating the tag and its type-expression
(try-true & exprs)
(with-bool-chan form)
assumes that err means false. Return channels receive booleans only
assumes that err means false. Return channels receive booleans only
(with-chan form)
(with-chan form datafn)
Wraps an async call in a channel. Form arg should be a node interop sexp but lacking the trailing callback argument. Return channels always receive vectors, either [err] or [err data]. datafn is an optional function to call on data before its placed into channel
Wraps an async call in a channel. Form arg should be a node interop sexp but lacking the trailing callback argument. Return channels always receive vectors, either [err] or [err data]. datafn is an optional function to call on data before its placed into channel
(with-chan* form cb)
(with-promise sym & body)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close