mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 12:24:18 +00:00
Remove nullables when creating endpoint type
This commit is contained in:
parent
223eaf475c
commit
6937cac646
@ -65,8 +65,8 @@ export type EndpointHandlers<
|
||||
[H in keyof E['handlers']]: APIHandler<
|
||||
C,
|
||||
EndpointHandlers<C, E>,
|
||||
E['handlers'][H]['data'],
|
||||
E['handlers'][H]['body'],
|
||||
NonNullable<E['handlers'][H]>['data'],
|
||||
NonNullable<E['handlers'][H]>['body'],
|
||||
E['options']
|
||||
>
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user