You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
628 B
14 lines
628 B
|
2 years ago
|
/// <reference types="node" />
|
||
|
|
import { Transform, TransformCallback } from 'stream';
|
||
|
|
import { FormatterOptions } from './FormatterOptions';
|
||
|
|
import { Row, RowTransformFunction } from './types';
|
||
|
|
export declare class CsvFormatterStream<I extends Row, O extends Row> extends Transform {
|
||
|
|
private formatterOptions;
|
||
|
|
private rowFormatter;
|
||
|
|
private hasWrittenBOM;
|
||
|
|
constructor(formatterOptions: FormatterOptions<I, O>);
|
||
|
|
transform(transformFunction: RowTransformFunction<I, O>): CsvFormatterStream<I, O>;
|
||
|
|
_transform(row: I, encoding: string, cb: TransformCallback): void;
|
||
|
|
_flush(cb: TransformCallback): void;
|
||
|
|
}
|