UNPKG

489 BTypeScriptView Raw
1/**
2 * @since 0.5.7
3 */
4import * as t from 'io-ts'
5/**
6 * @since 0.5.7
7 */
8export interface ReadonlyNonEmptyArray<A> extends ReadonlyArray<A> {
9 readonly 0: A
10}
11/**
12 * @since 0.5.7
13 */
14export interface ReadonlyNonEmptyArrayC<C extends t.Mixed>
15 extends t.Type<ReadonlyNonEmptyArray<t.TypeOf<C>>, ReadonlyNonEmptyArray<t.OutputOf<C>>, unknown> {}
16/**
17 * @since 0.5.7
18 */
19export declare function readonlyNonEmptyArray<C extends t.Mixed>(codec: C, name?: string): ReadonlyNonEmptyArrayC<C>
20
\No newline at end of file