UNPKG

354 BTypeScriptView Raw
1import * as O from 'fp-ts/lib/Option'
2import * as t from 'io-ts'
3/**
4 * @since 0.5.0
5 */
6export interface OptionFromNullableC<C extends t.Mixed>
7 extends t.Type<O.Option<t.TypeOf<C>>, t.OutputOf<C> | null, unknown> {}
8/**
9 * @since 0.5.0
10 */
11export declare function optionFromNullable<C extends t.Mixed>(codec: C, name?: string): OptionFromNullableC<C>
12
\No newline at end of file