File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export class Generator extends stream.Readable {
11
11
readonly options : Options ;
12
12
}
13
13
14
- export interface Options {
14
+ export interface Options extends stream . ReadableOptions {
15
15
/**
16
16
* Define the number of generated fields and the generation method.
17
17
*/
@@ -27,7 +27,7 @@ export interface Options {
27
27
/**
28
28
* If specified, then buffers will be decoded to strings using the specified encoding.
29
29
*/
30
- encoding ?: string ;
30
+ encoding ?: BufferEncoding | undefined ;
31
31
/**
32
32
* When to stop the generation.
33
33
*/
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export class Generator extends stream.Readable {
11
11
readonly options : Options ;
12
12
}
13
13
14
- export interface Options {
14
+ export interface Options extends stream . ReadableOptions {
15
15
/**
16
16
* Define the number of generated fields and the generation method.
17
17
*/
@@ -27,7 +27,7 @@ export interface Options {
27
27
/**
28
28
* If specified, then buffers will be decoded to strings using the specified encoding.
29
29
*/
30
- encoding ?: string ;
30
+ encoding ?: BufferEncoding | undefined ;
31
31
/**
32
32
* When to stop the generation.
33
33
*/
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export class Generator extends stream.Readable {
11
11
readonly options : Options ;
12
12
}
13
13
14
- export interface Options {
14
+ export interface Options extends stream . ReadableOptions {
15
15
/**
16
16
* Define the number of generated fields and the generation method.
17
17
*/
@@ -27,7 +27,7 @@ export interface Options {
27
27
/**
28
28
* If specified, then buffers will be decoded to strings using the specified encoding.
29
29
*/
30
- encoding ?: string ;
30
+ encoding ?: BufferEncoding | undefined ;
31
31
/**
32
32
* When to stop the generation.
33
33
*/
You can’t perform that action at this time.
0 commit comments