composite-validation
Version:
Composite validation API for JS data models
17 lines • 530 B
TypeScript
export declare class CompositeValidationOptions {
private static readonly defaultError;
private static _errorMatches;
/**
* Returns error by key.
* @param key Error message key.
*/
static errorMatch(key: string): string;
/**
* Set default errors map.
* @param value Key value pairs object ('errorKey': 'error Message').
*/
static setErrorMatches(value: {
[key: string]: string;
}): void;
}
//# sourceMappingURL=composite-validation-options.d.ts.map