Module Decoders

Set of minimal decoder types that are composable into schema for data validation.

Example

import * as D from 'common-decoders';

const UserDecoder = D.object({ id: D.number, name: D.string });
type GetUser = D.Infer<typeof UserDecoder>;

Index

Type Aliases

Functions

Generated using TypeDoc