UNPKG

gettext-extractor

Version:

Gettext extractor for JavaScript, TypeScript, JSX and HTML

26 lines (25 loc) 833 B
export type Arguments = { [name: string]: any; }; export declare class Validate { private required; private entry?; static get required(): Validate; static get optional(): Validate; constructor(required: boolean); argument(args: Arguments): void; booleanProperty(object: any, path: string): void; string(args: Arguments): void; nonEmptyString(args: Arguments): void; stringProperty(object: any, path: string): void; numberProperty(object: any, path: string): void; functionProperty(object: any, path: string): void; object(args: Arguments): void; nonEmptyArray(args: Arguments): void; arrayProperty(object: any, path: string): void; regexProperty(object: any, path: string): void; private each; private property; private typeError; private error; }