jaywalk
Version:
Runtime type validation
14 lines (13 loc) • 426 B
TypeScript
import { Any, AnyOptions } from './any';
import { Context, Ref } from '../utils';
export interface NumberOptions extends AnyOptions {
min?: number | Ref;
max?: number | Ref;
}
export declare class Number extends Any implements NumberOptions {
type: string;
min: number | Ref;
max: number | Ref;
constructor(options?: NumberOptions);
_isType(value: any, path: string[], context: Context): number;
}