mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-14 12:09:04 +08:00
Merge pull request #10402 from DrDanRyan/patch-1
Allow `Object` type as argument to `Stringifier.write`
This commit is contained in:
4
csv-stringify/csv-stringify.d.ts
vendored
4
csv-stringify/csv-stringify.d.ts
vendored
@@ -58,8 +58,8 @@ declare module "csv-stringify" {
|
||||
|
||||
interface Stringifier extends NodeJS.ReadWriteStream {
|
||||
|
||||
// Stringifier stream takes array of strings
|
||||
write(line: string[]): boolean;
|
||||
// Stringifier stream takes array of strings or Object
|
||||
write(line: string[] | Object): boolean;
|
||||
|
||||
// repeat declarations from NodeJS.WritableStream to avoid compile error
|
||||
write(buffer: Buffer, cb?: Function): boolean;
|
||||
|
||||
Reference in New Issue
Block a user