-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.d.ts
34 lines (27 loc) · 899 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/// <reference types="node" />
import { Transform, TransformOptions } from "stream";
declare namespace ReadlineTransform {
interface ReadlineTransformOptions extends TransformOptions {
/**
* line break matcher for str.split()
* @default /\r?\n/
*/
breakMatcher?: RegExp | undefined;
/**
* if content ends with line break, ignore last empty line
* @default true
*/
ignoreEndOfBreak?: boolean | undefined;
/**
* if line is empty string, skip it
* @default false
*/
skipEmpty?: boolean | undefined;
}
}
declare class ReadlineTransform extends Transform {
constructor(options?: ReadlineTransform.ReadlineTransformOptions);
static default: typeof ReadlineTransform;
static ReadlineTransform: typeof ReadlineTransform;
}
export = ReadlineTransform;