diff --git a/lib/types/utils.d.ts b/lib/types/utils.d.ts index 88b1ad6ee..30318d529 100644 --- a/lib/types/utils.d.ts +++ b/lib/types/utils.d.ts @@ -65,10 +65,10 @@ export namespace Lifecycle { type Method< Refs extends ReqRef = ReqRefDefaults, R extends ReturnValue = ReturnValue - > = ( + > = ( this: MergeRefs['Bind'], - request: Request, - h: ResponseToolkit, + request: Request, + h: ResponseToolkit, err?: Error | undefined ) => R;