a decode function used in decoding a value to type T
Optional
testFn: ((arg) => boolean)an optional test function used in testing a value for conformity to type T
Optional
name: stringan optional name of your custom decoder
a new Decoder
Generated using TypeDoc
A way of creating custom decoders that can decoder a value into a specified type T. Useful only when utility for decoding your desired value doesn't exist.
example: