mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Support passing function only in Node writable.end()
This commit is contained in:
Vendored
+3
-3
@@ -354,7 +354,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;
|
||||
@@ -5280,7 +5280,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;
|
||||
@@ -5371,7 +5371,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;
|
||||
|
||||
Vendored
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
Vendored
+3
-3
@@ -291,7 +291,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;
|
||||
@@ -2271,7 +2271,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;
|
||||
}
|
||||
@@ -2290,7 +2290,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;
|
||||
}
|
||||
|
||||
Vendored
+3
-3
@@ -301,7 +301,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;
|
||||
@@ -3564,7 +3564,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;
|
||||
|
||||
@@ -3649,7 +3649,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;
|
||||
}
|
||||
|
||||
Vendored
+3
-3
@@ -313,7 +313,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;
|
||||
@@ -3713,7 +3713,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;
|
||||
|
||||
@@ -3798,7 +3798,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user