UNPKG

466 BTypeScriptView Raw
1import { Validator, ValidationError } from './type-validate';
2import { Indexable } from '../actions/merge';
3export declare function createActionValidator(type: Indexable, payloadSchema?: Validator | undefined, payloadRequired?: boolean, idRequired?: boolean): Validator;
4export declare function actionMessage(errors: ValidationError[]): string;
5export declare function isValidRelativePath(path?: string): boolean;
6export declare const relativePathSchema: Validator;