UNPKG

cec-product-card

Version:

Esto es un paquete de pruebas en NPM

16 lines (15 loc) 499 B
import { onChangeArgs, Product, InitialValues } from '../interfaces/product.interface'; interface Props { product: Product; onChange?: (args: onChangeArgs) => void; value?: number; initialValues?: InitialValues; } export declare const useProduct: ({ onChange, product, value, initialValues }: Props) => { count: number; increaseBy: (value: number) => void; isMaxCountReached: boolean; maxCount: number | undefined; reset: () => void; }; export {};