Skip to content

Commit f5febbf

Browse files
authored
fix(serverless): change response handler type to accept promises (#599)
1 parent a27a4b4 commit f5febbf

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/rare-apes-play.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ts-rest/serverless': patch
3+
---
4+
5+
Change response handler type to accept promises

libs/ts-rest/serverless/src/lib/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export type ServerlessHandlerOptions<
132132
response: TsRestResponse,
133133
request: TsRestRequest & TRequestExtension,
134134
args: TPlatformArgs,
135-
) => TsRestResponse | void
135+
) => TsRestResponse | Promise<TsRestResponse> | void | Promise<void>
136136
>;
137137
};
138138

0 commit comments

Comments
 (0)