jaywalk
Version:
Runtime type validation
17 lines (16 loc) • 557 B
TypeScript
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;
}