From ed0c02c9d4691edcec19d6b0567125f5c61c6c0d Mon Sep 17 00:00:00 2001 From: Rodrigo Saboya Date: Wed, 15 Apr 2020 00:28:06 -0300 Subject: [PATCH] adding constructor argument to hapi__call (#43774) --- types/hapi__call/hapi__call-tests.ts | 2 +- types/hapi__call/index.d.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/types/hapi__call/hapi__call-tests.ts b/types/hapi__call/hapi__call-tests.ts index ed5bd7f058..ba45577590 100644 --- a/types/hapi__call/hapi__call-tests.ts +++ b/types/hapi__call/hapi__call-tests.ts @@ -1,6 +1,6 @@ import { Route, Router } from '@hapi/call'; -const router = new Router(); +const router = new Router({ isCaseSensitive: false }); router.add({ method: 'get', path: '/user/{userId}'}, { id: 'get_user'}); diff --git a/types/hapi__call/index.d.ts b/types/hapi__call/index.d.ts index 167baa2c4a..ae62e5b0e6 100644 --- a/types/hapi__call/index.d.ts +++ b/types/hapi__call/index.d.ts @@ -23,6 +23,7 @@ export interface Match

{ export type Route

= Match | Error; export class Router { + constructor(routerOptions?: RouterOptions) add(definition: RouteDefinition, data?: any): void; route(method: string, path: string): Route; }