diff --git a/types/hapi/index.d.ts b/types/hapi/index.d.ts index e5a6bfa038..01e8675a29 100644 --- a/types/hapi/index.d.ts +++ b/types/hapi/index.d.ts @@ -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; /**