UNPKG

222 BTypeScriptView Raw
1/**
2 * @since 0.4.4
3 */
4import * as t from 'io-ts'
5/**
6 * Returns a codec from a refinement
7 *
8 * @since 0.4.4
9 */
10export declare function fromRefinement<A>(name: string, is: (u: unknown) => u is A): t.Type<A, A, unknown>
11
\No newline at end of file