Skip to content

Commit d971258

Browse files
committed
fix: typing error in genercics
1 parent decf71d commit d971258

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/http/handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export interface OperationWithRequestBody extends Operation {
4242
requestBody: { content: { 'application/json': any } };
4343
}
4444

45-
export const createOpenApiHandlerWithRequestBody = <OP extends OperationWithRequestBody, SC extends number = 200>(handler: HttpHandler<OP['requestBody']['content']['application/json'], OP['responses'][SC]['application/json']>): APIGatewayv2Handler => {
45+
export const createOpenApiHandlerWithRequestBody = <OP extends OperationWithRequestBody, SC extends number = 200>(handler: HttpHandler<OP['requestBody']['content']['application/json'], OP['responses'][SC]['content']['application/json']>): APIGatewayv2Handler => {
4646
return createHttpHandler(handler);
4747
};
4848

0 commit comments

Comments
 (0)