From e01f2d7d8752ab11b8d1095bb125ac38337b5ac8 Mon Sep 17 00:00:00 2001 From: mailto1587 Date: Wed, 21 Jun 2017 20:01:17 +0800 Subject: [PATCH] Change the type of Request.query to any instead of Object for building a fast prototype --- types/hapi/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/hapi/index.d.ts b/types/hapi/index.d.ts index f0ed602864..502b8d4362 100644 --- a/types/hapi/index.d.ts +++ b/types/hapi/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for hapi 16.1 +// Type definitions for hapi 16.2 // Project: https://github.com/hapijs/hapi // Definitions by: Jason Swearingen , AJP // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -1938,7 +1938,7 @@ export class Request extends Podium { * an object containing the query parameters. * TODO update with outcome of: https://github.com/hapijs/hapi/pull/3479 */ - query: Object; + query: any; /** an object containing the Node HTTP server objects. **Direct interaction with these raw objects is not recommended.** */ raw: { req: http.IncomingMessage; // Or http.ClientRequest http://www.apetuts.com/tutorial/node-js-http-client-request-class/ ?