From 9b809a2cccf8c4f98eb78f70dc9ee7e175f1e882 Mon Sep 17 00:00:00 2001 From: Matteo Ferrando Date: Fri, 18 Aug 2017 18:40:48 -0400 Subject: [PATCH] [Hapi] Updated timeout property of RoutePayloadConfigurationObject is an optional property which accepts a `number` or `false` --- types/hapi/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; /**