UNPKG

pmcm-product-card

Version:

Este es un paquete de pruebas de despliegue NPM

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