UNPKG

394 BTypeScriptView Raw
1/**
2 * @since 0.5.0
3 */
4import * as t from 'io-ts'
5import { NonEmptyArray } from 'fp-ts/lib/NonEmptyArray'
6/**
7 * @since 0.5.0
8 */
9export interface NonEmptyArrayC<C extends t.Mixed>
10 extends t.Type<NonEmptyArray<t.TypeOf<C>>, NonEmptyArray<t.OutputOf<C>>, unknown> {}
11/**
12 * @since 0.5.0
13 */
14export declare function nonEmptyArray<C extends t.Mixed>(codec: C, name?: string): NonEmptyArrayC<C>
15
\No newline at end of file