diff --git a/types/node/index.d.ts b/types/node/index.d.ts index b4ec2d2293..1335f20fac 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -439,7 +439,7 @@ declare namespace NodeJS { writable: boolean; write(buffer: Buffer | string, cb?: Function): boolean; write(str: string, encoding?: string, cb?: Function): boolean; - end(): void; + end(cb?: Function): void; end(buffer: Buffer, cb?: Function): void; end(str: string, cb?: Function): void; end(str: string, encoding?: string, cb?: Function): void; @@ -5379,7 +5379,7 @@ declare module "stream" { write(chunk: any, cb?: Function): boolean; write(chunk: any, encoding?: string, cb?: Function): boolean; setDefaultEncoding(encoding: string): this; - end(): void; + end(cb?: Function): void; end(chunk: any, cb?: Function): void; end(chunk: any, encoding?: string, cb?: Function): void; cork(): void; @@ -5470,7 +5470,7 @@ declare module "stream" { write(chunk: any, cb?: Function): boolean; write(chunk: any, encoding?: string, cb?: Function): boolean; setDefaultEncoding(encoding: string): this; - end(): void; + end(cb?: Function): void; end(chunk: any, cb?: Function): void; end(chunk: any, encoding?: string, cb?: Function): void; cork(): void; diff --git a/types/node/v0/index.d.ts b/types/node/v0/index.d.ts index 65da8a9459..1c4063f20b 100644 --- a/types/node/v0/index.d.ts +++ b/types/node/v0/index.d.ts @@ -221,7 +221,7 @@ declare namespace NodeJS { writable: boolean; write(buffer: Buffer|string, cb?: Function): boolean; write(str: string, encoding?: string, cb?: Function): boolean; - end(): void; + end(cb?: Function): void; end(buffer: Buffer, cb?: Function): void; end(str: string, cb?: Function): void; end(str: string, encoding?: string, cb?: Function): void; @@ -1804,7 +1804,7 @@ declare module "stream" { write(chunk: any, cb?: Function): boolean; write(chunk: any, encoding?: string, cb?: Function): boolean; setDefaultEncoding(encoding: string): this; - end(): void; + end(cb?: Function): void; end(chunk: any, cb?: Function): void; end(chunk: any, encoding?: string, cb?: Function): void; } @@ -1821,7 +1821,7 @@ declare module "stream" { write(chunk: any, cb?: Function): boolean; write(chunk: any, encoding?: string, cb?: Function): boolean; setDefaultEncoding(encoding: string): this; - end(): void; + end(cb?: Function): void; end(chunk: any, cb?: Function): void; end(chunk: any, encoding?: string, cb?: Function): void; } diff --git a/types/node/v4/index.d.ts b/types/node/v4/index.d.ts index 3b9dc7a83c..eefbf46bef 100644 --- a/types/node/v4/index.d.ts +++ b/types/node/v4/index.d.ts @@ -375,7 +375,7 @@ declare namespace NodeJS { writable: boolean; write(buffer: Buffer|string, cb?: Function): boolean; write(str: string, encoding?: string, cb?: Function): boolean; - end(): void; + end(cb?: Function): void; end(buffer: Buffer, cb?: Function): void; end(str: string, cb?: Function): void; end(str: string, encoding?: string, cb?: Function): void; @@ -2355,7 +2355,7 @@ declare module "stream" { write(chunk: any, cb?: Function): boolean; write(chunk: any, encoding?: string, cb?: Function): boolean; setDefaultEncoding(encoding: string): this; - end(): void; + end(cb?: Function): void; end(chunk: any, cb?: Function): void; end(chunk: any, encoding?: string, cb?: Function): void; } @@ -2374,7 +2374,7 @@ declare module "stream" { write(chunk: any, cb?: Function): boolean; write(chunk: any, encoding?: string, cb?: Function): boolean; setDefaultEncoding(encoding: string): this; - end(): void; + end(cb?: Function): void; end(chunk: any, cb?: Function): void; end(chunk: any, encoding?: string, cb?: Function): void; } diff --git a/types/node/v6/index.d.ts b/types/node/v6/index.d.ts index 0696c5c689..1a697551a4 100644 --- a/types/node/v6/index.d.ts +++ b/types/node/v6/index.d.ts @@ -385,7 +385,7 @@ declare namespace NodeJS { writable: boolean; write(buffer: Buffer | string, cb?: Function): boolean; write(str: string, encoding?: string, cb?: Function): boolean; - end(): void; + end(cb?: Function): void; end(buffer: Buffer, cb?: Function): void; end(str: string, cb?: Function): void; end(str: string, encoding?: string, cb?: Function): void; @@ -3648,7 +3648,7 @@ declare module "stream" { write(chunk: any, cb?: Function): boolean; write(chunk: any, encoding?: string, cb?: Function): boolean; setDefaultEncoding(encoding: string): this; - end(): void; + end(cb?: Function): void; end(chunk: any, cb?: Function): void; end(chunk: any, encoding?: string, cb?: Function): void; @@ -3733,7 +3733,7 @@ declare module "stream" { write(chunk: any, cb?: Function): boolean; write(chunk: any, encoding?: string, cb?: Function): boolean; setDefaultEncoding(encoding: string): this; - end(): void; + end(cb?: Function): void; end(chunk: any, cb?: Function): void; end(chunk: any, encoding?: string, cb?: Function): void; } diff --git a/types/node/v7/index.d.ts b/types/node/v7/index.d.ts index 62e7a26610..25c120ad3c 100644 --- a/types/node/v7/index.d.ts +++ b/types/node/v7/index.d.ts @@ -397,7 +397,7 @@ declare namespace NodeJS { writable: boolean; write(buffer: Buffer | string, cb?: Function): boolean; write(str: string, encoding?: string, cb?: Function): boolean; - end(): void; + end(cb?: Function): void; end(buffer: Buffer, cb?: Function): void; end(str: string, cb?: Function): void; end(str: string, encoding?: string, cb?: Function): void; @@ -3797,7 +3797,7 @@ declare module "stream" { write(chunk: any, cb?: Function): boolean; write(chunk: any, encoding?: string, cb?: Function): boolean; setDefaultEncoding(encoding: string): this; - end(): void; + end(cb?: Function): void; end(chunk: any, cb?: Function): void; end(chunk: any, encoding?: string, cb?: Function): void; @@ -3882,7 +3882,7 @@ declare module "stream" { write(chunk: any, cb?: Function): boolean; write(chunk: any, encoding?: string, cb?: Function): boolean; setDefaultEncoding(encoding: string): this; - end(): void; + end(cb?: Function): void; end(chunk: any, cb?: Function): void; end(chunk: any, encoding?: string, cb?: Function): void; }