@@ -29,7 +29,7 @@ export interface onRequestHookHandler<
29
29
ContextConfig = ContextConfigDefault
30
30
> {
31
31
(
32
- request : FastifyRequest < RawServer , RawRequest , RequestGeneric > ,
32
+ request : FastifyRequest < RequestGeneric , RawServer , RawRequest > ,
33
33
reply : FastifyReply < RawServer , RawRequest , RawReply , RequestGeneric , ContextConfig > ,
34
34
done : HookHandlerDoneFunction
35
35
) : Promise < unknown > | void ;
@@ -47,7 +47,7 @@ export interface preParsingHookHandler<
47
47
ContextConfig = ContextConfigDefault
48
48
> {
49
49
(
50
- request : FastifyRequest < RawServer , RawRequest , RequestGeneric > ,
50
+ request : FastifyRequest < RequestGeneric , RawServer , RawRequest > ,
51
51
reply : FastifyReply < RawServer , RawRequest , RawReply , RequestGeneric , ContextConfig > ,
52
52
payload : RequestPayload ,
53
53
done : < TError extends Error = FastifyError > ( err ?: TError | null , res ?: RequestPayload ) => void
@@ -65,7 +65,7 @@ export interface preValidationHookHandler<
65
65
ContextConfig = ContextConfigDefault
66
66
> {
67
67
(
68
- request : FastifyRequest < RawServer , RawRequest , RequestGeneric > ,
68
+ request : FastifyRequest < RequestGeneric , RawServer , RawRequest > ,
69
69
reply : FastifyReply < RawServer , RawRequest , RawReply , RequestGeneric , ContextConfig > ,
70
70
done : HookHandlerDoneFunction
71
71
) : Promise < unknown > | void ;
@@ -82,7 +82,7 @@ export interface preHandlerHookHandler<
82
82
ContextConfig = ContextConfigDefault
83
83
> {
84
84
(
85
- request : FastifyRequest < RawServer , RawRequest , RequestGeneric > ,
85
+ request : FastifyRequest < RequestGeneric , RawServer , RawRequest > ,
86
86
reply : FastifyReply < RawServer , RawRequest , RawReply , RequestGeneric , ContextConfig > ,
87
87
done : HookHandlerDoneFunction
88
88
) : Promise < unknown > | void ;
@@ -107,7 +107,7 @@ export interface preSerializationHookHandler<
107
107
ContextConfig = ContextConfigDefault
108
108
> {
109
109
(
110
- request : FastifyRequest < RawServer , RawRequest , RequestGeneric > ,
110
+ request : FastifyRequest < RequestGeneric , RawServer , RawRequest > ,
111
111
reply : FastifyReply < RawServer , RawRequest , RawReply , RequestGeneric , ContextConfig > ,
112
112
payload : PreSerializationPayload ,
113
113
done : DoneFuncWithErrOrRes
@@ -127,7 +127,7 @@ export interface onSendHookHandler<
127
127
ContextConfig = ContextConfigDefault
128
128
> {
129
129
(
130
- request : FastifyRequest < RawServer , RawRequest , RequestGeneric > ,
130
+ request : FastifyRequest < RequestGeneric , RawServer , RawRequest > ,
131
131
reply : FastifyReply < RawServer , RawRequest , RawReply , RequestGeneric , ContextConfig > ,
132
132
payload : OnSendPayload ,
133
133
done : DoneFuncWithErrOrRes
@@ -146,7 +146,7 @@ export interface onResponseHookHandler<
146
146
ContextConfig = ContextConfigDefault
147
147
> {
148
148
(
149
- request : FastifyRequest < RawServer , RawRequest , RequestGeneric > ,
149
+ request : FastifyRequest < RequestGeneric , RawServer , RawRequest > ,
150
150
reply : FastifyReply < RawServer , RawRequest , RawReply , RequestGeneric , ContextConfig > ,
151
151
done : HookHandlerDoneFunction
152
152
) : Promise < unknown > | void ;
@@ -167,7 +167,7 @@ export interface onErrorHookHandler<
167
167
TError extends Error = FastifyError
168
168
> {
169
169
(
170
- request : FastifyRequest < RawServer , RawRequest , RequestGeneric > ,
170
+ request : FastifyRequest < RequestGeneric , RawServer , RawRequest > ,
171
171
reply : FastifyReply < RawServer , RawRequest , RawReply , RequestGeneric , ContextConfig > ,
172
172
error : TError ,
173
173
done : ( ) => void
0 commit comments