jaywalk
Version:
Runtime type validation
19 lines (18 loc) • 575 B
TypeScript
import { Rule } from './rule';
import { Any, AnyOptions } from './any';
import { Context, Ref } from '../utils';
export interface ArrayOptions extends AnyOptions {
items: Rule;
minItems?: number | Ref;
maxItems?: number | Ref;
}
export declare class Array extends Any implements ArrayOptions {
type: string;
items: Rule;
minItems: number | Ref;
maxItems: number | Ref;
constructor(options: ArrayOptions);
_isType(value: any, path: string[], context: Context): number;
_extend(options: ArrayOptions): ArrayOptions;
toJSON(): any;
}