From fd6f26dcd095c7294e97d7e2dc7ce9044b074199 Mon Sep 17 00:00:00 2001 From: rafaelsouzaf Date: Wed, 6 Dec 2017 22:52:47 -0300 Subject: [PATCH] RequestExtPointFunction should inherit from Lifecycle.Method --- types/hapi/v17/definitions/server/server-ext.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/hapi/v17/definitions/server/server-ext.d.ts b/types/hapi/v17/definitions/server/server-ext.d.ts index 960a342998..40d0969f09 100644 --- a/types/hapi/v17/definitions/server/server-ext.d.ts +++ b/types/hapi/v17/definitions/server/server-ext.d.ts @@ -1,4 +1,4 @@ -import {Server, Request, ResponseToolkit} from "hapi"; +import {Server, Lifecycle} from "hapi"; /** * The extension point event name. The available extension points include the request extension points as well as the following server extension points: @@ -76,8 +76,8 @@ export interface ServerExtPointFunction { (server: Server): void; } -export interface RequestExtPointFunction { - (request: Request, h: ResponseToolkit): void; +export interface RequestExtPointFunction extends Lifecycle.Method { + } /**