UNPKG

jaywalk

Version:
20 lines (19 loc) 553 B
import { TestFn, CompiledFn, Context } from '../utils'; export interface RuleOptions { description?: string; meta?: any; example?: any; } export declare class Rule implements RuleOptions { type: string; description: string; meta: any; example: any; _tests: Array<TestFn<any>>; constructor(options?: RuleOptions); _isType(value: any, path: string[], context: Context): number; _typeOf(other: Rule): boolean; _compile(): CompiledFn<any>; _extend(options: RuleOptions): RuleOptions; toJSON(): any; }