typedsv
Version:
Parse and map delimiter-separated values (csv, tsv, etc.) to TypeScript/ES6+ classes.
10 lines (9 loc) • 417 B
TypeScript
import { ValidateOptions, ValidateType } from './Validation';
export declare type TransformFunction = (input: string) => any;
export interface ParsedOptions {
index?: number;
header?: string;
map?: TransformFunction;
validate?: ValidateType | ValidateType[] | ValidateOptions;
}
export default function Parsed(options: ParsedOptions | number | string): (object: Object, propertyName: string) => void;