Adding types, fixes and other updates

This commit is contained in:
Luis Alvarez
2021-03-26 12:50:25 -06:00
parent e6df8dfb40
commit b2fbaab5d5
11 changed files with 400 additions and 38 deletions

View File

@@ -1,5 +1,8 @@
import cart from '@commerce/api/endpoints/cart'
import { operations } from '@framework/api/cart'
import { CartAPI, operations } from '@framework/api/cart'
import commerce from '@lib/api/commerce'
export default commerce.endpoint({ handler: cart, operations })
export default commerce.endpoint({
handler: cart as CartAPI['endpoint']['handler'],
operations,
})