UNPKG

io-ts-types

Version:

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

14 lines (13 loc) 372 B
/** * @since 0.5.0 */ import { Ord } from 'fp-ts/lib/Ord' import * as t from 'io-ts' /** * @since 0.5.0 */ export interface SetFromArrayC<C extends t.Mixed> extends t.Type<Set<t.TypeOf<C>>, Array<t.OutputOf<C>>, unknown> {} /** * @since 0.5.0 */ export declare function setFromArray<C extends t.Mixed>(codec: C, O: Ord<t.TypeOf<C>>, name?: string): SetFromArrayC<C>