UNPKG

io-ts-types

Version:

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

15 lines (14 loc) 394 B
/** * @since 0.5.0 */ import * as t from 'io-ts' import { NonEmptyArray } from 'fp-ts/lib/NonEmptyArray' /** * @since 0.5.0 */ export interface NonEmptyArrayC<C extends t.Mixed> extends t.Type<NonEmptyArray<t.TypeOf<C>>, NonEmptyArray<t.OutputOf<C>>, unknown> {} /** * @since 0.5.0 */ export declare function nonEmptyArray<C extends t.Mixed>(codec: C, name?: string): NonEmptyArrayC<C>