RequestExtPointFunction should inherit from Lifecycle.Method

This commit is contained in:
rafaelsouzaf
2017-12-06 22:52:47 -03:00
parent c159a74456
commit fd6f26dcd0
+3 -3
View File
@@ -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 {
}
/**