UNPKG

jaywalk

Version:
17 lines (16 loc) 557 B
import { Any, AnyOptions } from './any'; import { Context, Ref } from '../utils'; export interface StringOptions extends AnyOptions { minLength?: number | Ref; maxLength?: number | Ref; pattern?: string | Ref; } export declare class String extends Any implements StringOptions { type: string; minLength: number | Ref; maxLength: number | Ref; pattern: string | Ref; constructor(options?: StringOptions); _isType(value: any, path: string[], context: Context): number; _extend(options: StringOptions): StringOptions; }