Liking cljdoc? Tell your friends :D

cljs-node-io.macros


goog-typedefcljmacro

(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
raw docstring

try-truecljmacro

(try-true & exprs)

with-bool-chancljmacro

(with-bool-chan form)

assumes that err means false. Return channels receive booleans only

assumes that err means false. Return channels receive booleans only
raw docstring

with-chancljmacro

(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
raw docstring

with-chan*cljmacro

(with-chan* form cb)

with-promisecljmacro

(with-promise sym & body)

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

× close