4
0
forked from crowetic/commerce
2020-10-11 00:58:57 -05:00

10 lines
198 B
TypeScript

import type { ItemBody } from '../cart'
const parseItem = (item: ItemBody) => ({
quantity: item.quantity,
product_id: item.productId,
variant_id: item.variantId,
})
export default parseItem