mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-17 12:16:38 +08:00
[Hapi] Updated timeout property of RoutePayloadConfigurationObject is an optional property which accepts a number or false
This commit is contained in:
2
types/hapi/index.d.ts
vendored
2
types/hapi/index.d.ts
vendored
@@ -1025,7 +1025,7 @@ export interface RoutePayloadConfigurationObject {
|
||||
/** limits the size of incoming payloads to the specified byte count. Allowing very large payloads may cause the server to run out of memory. Defaults to 1048576 (1MB). */
|
||||
maxBytes?: number;
|
||||
/** payload reception timeout in milliseconds. Sets the maximum time allowed for the client to transmit the request payload (body) before giving up and responding with a Request Timeout (408) error response. Set to false to disable. Defaults to 10000 (10 seconds). */
|
||||
timeout?: number;
|
||||
timeout?: number | false;
|
||||
/** the directory used for writing file uploads. Defaults to os.tmpdir(). */
|
||||
uploads?: string;
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user