validator-tsk
Version:
validator tool to use with or without NodeTskeleton template project
9 lines (8 loc) • 379 B
TypeScript
import { IResources, ErrorType, IResult, ValidationType } from "./types";
export declare class Validator {
private resources;
private resourceKey;
private defaultErrorCode;
constructor(resources: IResources, resourceKey: string, defaultErrorCode?: ErrorType);
isValidEntry(result: IResult, paramsToValidate: ValidationType, errorCode?: ErrorType): boolean;
}