Liking cljdoc? Tell your friends :D

kaocha.cljs.cognitect.transit


bigdeccljs

(bigdec s)

Construct a big decimal from a string.

Construct a big decimal from a string.
sourceraw docstring

bigdec?cljs

(bigdec? x)

Returns true if x is a transit big decimal value, false otherwise.

Returns true if x is a transit big decimal value, false otherwise.
sourceraw docstring

bigintcljs

(bigint s)

Construct a big integer from a string.

Construct a big integer from a string.
sourceraw docstring

bigint?cljs

(bigint? x)

Returns true if x is a transit big integer value, false otherwise.

Returns true if x is a transit big integer value, false otherwise.
sourceraw docstring

binarycljs

(binary s)

Construct a transit binary value. s should be base64 encoded string.

Construct a transit binary value. s should be base64 encoded
string.
sourceraw docstring

binary?cljs

(binary? x)

Returns true if x is a transit binary value, false otherwise.

Returns true if x is a transit binary value, false otherwise.
sourceraw docstring

integercljs

(integer s)

Construct a transit integer value. Returns JavaScript number if in the 53bit integer range, a goog.math.Long instance if above. s may be a string or a JavaScript number.

Construct a transit integer value. Returns JavaScript number if
in the 53bit integer range, a goog.math.Long instance if above. s
may be a string or a JavaScript number.
sourceraw docstring

integer?cljs

(integer? x)

Returns true if x is an integer value between the 53bit and 64bit range, false otherwise.

Returns true if x is an integer value between the 53bit and 64bit
range, false otherwise.
sourceraw docstring

(link x)

Construct a transit link value. x should be an IMap instance containing at a minimum the following keys: :href, :rel. It may optionall include :name, :render, and :prompt. :href must be a transit URI, all other values are strings, and :render must be either :image or :link.

Construct a transit link value. x should be an IMap instance
containing at a minimum the following keys: :href, :rel. It
may optionall include :name, :render, and :prompt. :href must
be a transit URI, all other values are strings, and :render must
be either :image or :link.
sourceraw docstring

link?cljs

(link? x)

Returns true if x a transit link value, false if otherwise.

Returns true if x a transit link value, false if otherwise.
sourceraw docstring

quotedcljs

(quoted x)

Construct a quoted transit value. x should be a transit encodeable value.

Construct a quoted transit value. x should be a transit
encodeable value.
sourceraw docstring

quoted?cljs

(quoted? x)

Returns true if x is a transit quoted value, false otherwise.

Returns true if x is a transit quoted value, false otherwise.
sourceraw docstring

readcljs

(read r str)

Read a transit encoded string into ClojureScript values given a transit reader.

Read a transit encoded string into ClojureScript values given a
transit reader.
sourceraw docstring

read-handlercljs

(read-handler from-rep)

Construct a read handler. Implemented as identity, exists primarily for API compatiblity with transit-clj

Construct a read handler. Implemented as identity, exists primarily
for API compatiblity with transit-clj
sourceraw docstring

readercljs

(reader type)
(reader type opts)

Return a transit reader. type may be either :json or :json-verbose. opts may be a map optionally containing a :handlers entry. The value of :handlers should be map from string tag to a decoder function of one argument which returns the in-memory representation of the semantic transit value. If a :default handler is provided, it will be used when no matching read handler can be found.

Return a transit reader. type may be either :json or :json-verbose.
opts may be a map optionally containing a :handlers entry. The value
of :handlers should be map from string tag to a decoder function of one
argument which returns the in-memory representation of the semantic transit
value. If a :default handler is provided, it will be used when no matching
read handler can be found.
sourceraw docstring

tagged-valuecljs

(tagged-value tag rep)

Construct a tagged value. tag must be a string and rep can be any transit encodeable value.

Construct a tagged value. tag must be a string and rep can
be any transit encodeable value.
sourceraw docstring

tagged-value?cljs

(tagged-value? x)

Returns true if x is a transit tagged value, false otherwise.

Returns true if x is a transit tagged value, false otherwise.
sourceraw docstring

uricljs

(uri s)

Construct a URI from a string.

Construct a URI from a string.
sourceraw docstring

uri?cljs

(uri? x)

Returns true if x is a transit URI value, false otherwise.

Returns true if x is a transit URI value, false otherwise.
sourceraw docstring

uuidcljs

(uuid s)

Construct a UUID from a string.

Construct a UUID from a string.
sourceraw docstring

uuid?cljs

(uuid? x)

Returns true if x is a transit UUID value, false otherwise.

Returns true if x is a transit UUID value, false otherwise.
sourceraw docstring

writecljs

(write w o)

Encode an object into a transit string given a transit writer.

Encode an object into a transit string given a transit writer.
sourceraw docstring

write-handlercljs

(write-handler tag-fn rep-fn)
(write-handler tag-fn rep-fn str-rep-fn)
(write-handler tag-fn rep-fn str-rep-fn verbose-handler-fn)

Creates a transit write handler whose tag, rep, stringRep, and verboseWriteHandler methods invoke the provided fns.

Creates a transit write handler whose tag, rep,
stringRep, and verboseWriteHandler methods
invoke the provided fns.
sourceraw docstring

write-metacljs

(write-meta x)

For :transform. Will write any metadata present on the value.

For :transform. Will write any metadata present on the value.
sourceraw docstring

writercljs

(writer type)
(writer type opts)

Return a transit writer. type maybe either :json or :json-verbose. opts is a map with the following optional keys:

:handlers - a map of type constructors to handler instances. Can optionally provide a :default write handler which will be used if no matching handler can be found. :transform - a function of one argument returning a transformed value. Will be invoked on a value before it is written.

Return a transit writer. type maybe either :json or :json-verbose.
opts is a map with the following optional keys:

  :handlers  - a map of type constructors to handler instances. Can optionally
               provide a :default write handler which will be used if no
               matching handler can be found.
  :transform - a function of one argument returning a transformed value. Will
               be invoked on a value before it is written.
sourceraw docstring

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

× close