UNPKG

ahv-product-card

Version:

This is a test package in order to deploy to NPM.

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