We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a27a4b4 commit f5febbfCopy full SHA for f5febbf
2 files changed
.changeset/rare-apes-play.md
@@ -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
@@ -132,7 +132,7 @@ export type ServerlessHandlerOptions<
132
response: TsRestResponse,
133
request: TsRestRequest & TRequestExtension,
134
args: TPlatformArgs,
135
- ) => TsRestResponse | void
+ ) => TsRestResponse | Promise<TsRestResponse> | void | Promise<void>
136
>;
137
};
138
0 commit comments