4
0
forked from crowetic/commerce
commerce/framework/commerce/cart/use-update-item.tsx
2021-02-02 17:49:05 -05:00

12 lines
297 B
TypeScript

import useAction from '../utils/use-action'
import type { CartItemBody } from '../types'
// Input expected by the action returned by the `useUpdateItem` hook
export type UpdateItemInput<T extends CartItemBody> = T & {
id: string
}
const useUpdateItem = useAction
export default useUpdateItem