Added in v0.4.4
Returns a codec from a refinement
Signature
export function fromRefinement<A>(name: string, is: (u: unknown) => u is A): t.Type<A, A, unknown> { ... }