Skip to content

Commit ef84fb2

Browse files
committed
feat(csv-generate): ts extends options with stream.ReadableOptions
1 parent eb64b12 commit ef84fb2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/csv-generate/dist/cjs/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class Generator extends stream.Readable {
1111
readonly options: Options;
1212
}
1313

14-
export interface Options {
14+
export interface Options extends stream.ReadableOptions {
1515
/**
1616
* Define the number of generated fields and the generation method.
1717
*/
@@ -27,7 +27,7 @@ export interface Options {
2727
/**
2828
* If specified, then buffers will be decoded to strings using the specified encoding.
2929
*/
30-
encoding?: string;
30+
encoding?: BufferEncoding | undefined;
3131
/**
3232
* When to stop the generation.
3333
*/

packages/csv-generate/dist/esm/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class Generator extends stream.Readable {
1111
readonly options: Options;
1212
}
1313

14-
export interface Options {
14+
export interface Options extends stream.ReadableOptions {
1515
/**
1616
* Define the number of generated fields and the generation method.
1717
*/
@@ -27,7 +27,7 @@ export interface Options {
2727
/**
2828
* If specified, then buffers will be decoded to strings using the specified encoding.
2929
*/
30-
encoding?: string;
30+
encoding?: BufferEncoding | undefined;
3131
/**
3232
* When to stop the generation.
3333
*/

packages/csv-generate/lib/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class Generator extends stream.Readable {
1111
readonly options: Options;
1212
}
1313

14-
export interface Options {
14+
export interface Options extends stream.ReadableOptions {
1515
/**
1616
* Define the number of generated fields and the generation method.
1717
*/
@@ -27,7 +27,7 @@ export interface Options {
2727
/**
2828
* If specified, then buffers will be decoded to strings using the specified encoding.
2929
*/
30-
encoding?: string;
30+
encoding?: BufferEncoding | undefined;
3131
/**
3232
* When to stop the generation.
3333
*/

0 commit comments

Comments
 (0)