UNPKG

636 BTypeScriptView Raw
1import { TransformMapOptions } from '../..';
2export interface NDJSONMapOptions<IN = any, OUT = IN> extends TransformMapOptions<IN, OUT> {
3 inputFilePath: string;
4 outputFilePath: string;
5 mapperFilePath: string;
6 limitInput?: number;
7 limitOutput?: number;
8 /**
9 * @default 1000
10 */
11 logEveryInput?: number;
12 /**
13 * @default 100_000
14 */
15 logEveryOutput?: number;
16}
17/**
18 * Unzips input file automatically, if it ends with `.gz`.
19 * Zips output file automatically, if it ends with `.gz`.
20 */
21export declare function ndjsonMap<IN = any, OUT = any>(opt: NDJSONMapOptions<IN, OUT>): Promise<void>;