UNPKG

validator-tsk

Version:
9 lines (8 loc) 373 B
export interface IResources { getWithParams(resourceName: string, params: Record<string, string>, language?: string): string; } export interface IResult { setError(message: string, errorCode: ErrorType): void; } export type ValidationType = Record<string, string | number | undefined | null | unknown | CallableFunction[]>; export type ErrorType = number | string;