Skip to main content

write-handler

function

cognitect.transit/write-handler

(write-handler [tag-fn rep-fn] [tag-fn rep-fn str-rep-fn] [tag-fn rep-fn str-rep-fn verbose-handler-fn])
Creates a transit WriteHandler whose tag, rep, stringRep, and verboseWriteHandler methods invoke the provided fns. If a non-fn is passed as an argument, implemented handler method returns the value unaltered.

No examples yet. Be the first to add one!

Categories