UNPKG

npm-count-product-card

Version:

Este es un paquete de pruebas de despliegue en NPM

16 lines (15 loc) 512 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; isMaxCountReached: boolean; maxCount: number | undefined; increaseBy: (value: number) => void; reset: () => void; }; export {};