UNPKG

io-ts-types

Version:

A collection of codecs and combinators for use with io-ts

11 lines (10 loc) 222 B
/** * @since 0.4.4 */ import * as t from 'io-ts' /** * Returns a codec from a refinement * * @since 0.4.4 */ export declare function fromRefinement<A>(name: string, is: (u: unknown) => u is A): t.Type<A, A, unknown>