UNPKG

aag-product-card

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