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; }