Merge pull request #22077 from Zarel/writable-end

[node] Support passing callback-only in writable.end()
This commit is contained in:
Arthur Ozga
2017-12-19 11:23:30 -08:00
committed by GitHub
5 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -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;
+3 -3
View File
@@ -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;
}
+3 -3
View File
@@ -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;
}
+3 -3
View File
@@ -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;
}
+3 -3
View File
@@ -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;
}