mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-26 12:10:44 +08:00
Fix bad signature of ClientRequest#setNoDelay
`noDelay` argument should be boolean, not Function
This commit is contained in:
1 parent
fbee02cb17
commit
9f5a5ab394
1 file changed
+1
-1
Vendored
+1
-1
@@ -327,7 +327,7 @@ declare module "http" {
|
||||
write(chunk: any, encoding?: string): void;
|
||||
abort(): void;
|
||||
setTimeout(timeout: number, callback?: Function): void;
|
||||
setNoDelay(noDelay?: Function): void;
|
||||
setNoDelay(noDelay?: boolean): void;
|
||||
setSocketKeepAlive(enable?: boolean, initialDelay?: number): void;
|
||||
|
||||
// Extended base methods
|
||||
|
||||
Reference in new issue
Block a user