UNPKG

react-jlm-product-card

Version:

This is a test package to deploy in NPM

16 lines (15 loc) 513 B
import { onChangeArgs, Product, InitialValues } 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 {};