UNPKG

validator-tsk

Version:
9 lines (8 loc) 379 B
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; }