jaywalk
Version:
Runtime type validation
15 lines (14 loc) • 481 B
TypeScript
import { String, StringOptions } from './string';
import { Context } from '../utils';
export interface PatternOptions extends StringOptions {
pattern: string;
}
export declare class Pattern extends String implements PatternOptions {
type: string;
pattern: string;
_regexp: RegExp;
constructor(options: PatternOptions);
_isType(value: any, path: string[], context: Context): number;
_extend(options: PatternOptions): PatternOptions;
toJSON(): any;
}