mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Fix bad signature of ClientRequest#setNoDelay
`noDelay` argument should be boolean, not Function
This commit is contained in:
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