File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,17 @@ export { default as schema } from './${parsedPath.base}'
27
27
export interface ${ prefix } Reply extends FastifyReply<ServerResponse | Http2ServerResponse> {}
28
28
29
29
${ await compile ( schema . params || defaultSchema , prefix + "Params" , opts ) }
30
- ${ await compile ( schema . querystring || defaultSchema , prefix + "Query" , opts ) }
30
+ ${ await compile (
31
+ schema . querystring || schema . query || defaultSchema ,
32
+ prefix + "Query" ,
33
+ opts
34
+ ) }
31
35
${ await compile ( schema . body || defaultSchema , prefix + "Body" , opts ) }
32
36
${ await compile ( schema . headers || defaultSchema , prefix + "Headers" , opts ) }
33
37
34
38
export interface ${ prefix } Request extends FastifyRequest {
35
39
params: ${ prefix } Params,
36
- querystring : ${ prefix } Query,
40
+ query : ${ prefix } Query,
37
41
body: ${ prefix } Body,
38
42
headers: ${ prefix } Headers,
39
43
}
You can’t perform that action at this time.
0 commit comments