Type alias Infer<T>

Infer<T>: FlattenType<_Infer<T>>

Type helper to infer the type from any given Decoder.

Example

 const fooDecoder = D.object({ foo: D.string })
// Create new type from fooDecoder, Foo will equal { foo: string };
type Foo = Infer<typeof fooDecoder>;

Type Parameters

Generated using TypeDoc