typedsv
Version:
Parse and map delimiter-separated values (csv, tsv, etc.) to TypeScript/ES6+ classes.
14 lines (13 loc) • 484 B
TypeScript
import { ConstructableType } from '../common/ConstructableType';
import { InputType } from '../common/InputType';
import { ReaderOptions } from '../reader/Reader';
declare type ParserOptions<T> = {
onObject?: (o: T, line: number) => void;
} & ReaderOptions;
export declare class Parser<T> {
private readonly type;
private readonly properties;
constructor(type: ConstructableType<T>);
parse(input: InputType, options?: ParserOptions<T>): Promise<T[]>;
}
export {};