UNPKG

typedsv

Version:

Parse and map delimiter-separated values (csv, tsv, etc.) to TypeScript/ES6+ classes.

13 lines (12 loc) 463 B
export declare type ValidateFunction = (input: any) => boolean; export declare type ValidateObject = { function: ValidateFunction; message?: string; }; export declare const isValidateObject: (t: any) => t is ValidateObject; export declare type ValidateType = ValidateFunction | ValidateObject; export declare const isValidateType: (t: any) => t is ValidateType; export interface ValidateOptions { aggregate?: boolean; functions: ValidateType[]; }