UNPKG

ecr-product-card

Version:

Este es un paquete de pruebas de despliegue en NPM

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