Merge pull request #10402 from DrDanRyan/patch-1

Allow `Object` type as argument to `Stringifier.write`
This commit is contained in:
Mine Starks
2016-08-01 15:33:27 -07:00
committed by GitHub

View File

@@ -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;