Deduce the return type of a decoder. If there is a deep nesting of objects the type will be inferred but will not display correctly in the signature.
Example:
const paramDecoder = Decoder.object({ body: userDecoder }) const handleRequest = (params: DecodedValue<typeof paramDecoder>) => { // params.body is inferred }
Generated using TypeDoc
Deduce the return type of a decoder. If there is a deep nesting of objects the type will be inferred but will not display correctly in the signature.
Example:
const paramDecoder = Decoder.object({ body: userDecoder }) const handleRequest = (params: DecodedValue<typeof paramDecoder>) => { // params.body is inferred }