@beenotung/tslib
Version:
utils library in Typescript
29 lines (28 loc) • 875 B
TypeScript
export declare function write_csv_file(filename: string, records: object[], options?: {
titles?: string[];
separator?: string;
delimiter?: string;
wrap_line?: boolean;
skip_titles?: boolean;
}): Promise<any>;
export declare function write_csv_file_sync(filename: string, records: object[], options?: {
titles?: string[];
separator?: string;
delimiter?: string;
wrap_line?: boolean;
skip_titles?: boolean;
}): void;
export declare function read_csv_file(filename: string, options?: {
separator?: string;
delimiter?: string;
wrap_line?: boolean;
}): AsyncGenerator<{
[title: string]: string;
}, void, unknown>;
export declare function read_csv_file_sync(filename: string, options?: {
separator?: string;
delimiter?: string;
wrap_line?: boolean;
}): Generator<{
[title: string]: string;
}, void, unknown>;