jaywalk
Version:
Runtime type validation
15 lines (14 loc) • 460 B
TypeScript
import { Rule } from './rule';
import { Any, AnyOptions } from './any';
import { Context } from '../utils';
export interface TupleOptions extends AnyOptions {
tuple: Rule[];
}
export declare class Tuple extends Any implements TupleOptions {
type: string;
tuple: Rule[];
constructor(options: TupleOptions);
_isType(value: any, path: string[], context: Context): number;
_extend(options: TupleOptions): TupleOptions;
toJSON(): any;
}