UNPKG

io-ts-types

Version:

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

19 lines (18 loc) 422 B
/** * @since 0.5.7 */ import { Ord } from 'fp-ts/lib/Ord' import * as t from 'io-ts' /** * @since 0.5.7 */ export interface ReadonlySetFromArrayC<C extends t.Mixed> extends t.Type<ReadonlySet<t.TypeOf<C>>, ReadonlyArray<t.OutputOf<C>>, unknown> {} /** * @since 0.5.7 */ export declare function readonlySetFromArray<C extends t.Mixed>( codec: C, O: Ord<t.TypeOf<C>>, name?: string ): ReadonlySetFromArrayC<C>