Skip to content

Commit

Permalink
hotfix: wrong type extraction of Response
Browse files Browse the repository at this point in the history
  • Loading branch information
riflowth committed Oct 8, 2022
1 parent 4d4ab51 commit fcdc6e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export interface ApiSchema {

export type Request<T extends ApiSchema = ApiSchema> = ExpressRequest<T["param"], any, T["body"], T["query"]>;

export type Response<T extends ApiSchema = ApiSchema> = ExpressResponse<T["body"]>;
export type Response<T extends ApiSchema = ApiSchema> = ExpressResponse<T["res"]>;

/**
* For constructing API route schema by following the {@link ApiSchema} type.
Expand Down

0 comments on commit fcdc6e3

Please sign in to comment.