UNPKG

419 BTypeScriptView Raw
1import { Type } from './type';
2/**
3 * Array type, such as string[]
4 */
5export declare class ArrayType<T> implements Type<T[]> {
6 itemType: Type<T>;
7 constructor(itemType: Type<T>);
8 readonly name = "array";
9 isInstance(value: any): boolean;
10 isCoercible(value: any): boolean;
11 defaultValue(): T[];
12 coerce(value: any): any;
13 serialize(value: T[] | null | undefined): any[] | null | undefined;
14}