diff --git a/framework/commerce/api/index.ts b/framework/commerce/api/index.ts index 716c11ed5..d7ba37059 100644 --- a/framework/commerce/api/index.ts +++ b/framework/commerce/api/index.ts @@ -65,8 +65,8 @@ export type EndpointHandlers< [H in keyof E['handlers']]: APIHandler< C, EndpointHandlers, - E['handlers'][H]['data'], - E['handlers'][H]['body'], + NonNullable['data'], + NonNullable['body'], E['options'] > }