raulrobi-product-card
Version:
NPM testing deployment
18 lines (17 loc) • 587 B
TypeScript
import { InitialValuesProps, onChangeArgsProps, Product } from '../interfaces/interfaces';
interface useProductProps {
product: Product;
onChange?: (args: onChangeArgsProps) => void;
value?: number;
initialValues?: InitialValuesProps;
}
export declare const useProduct: ({ onChange, product, value, initialValues }: useProductProps) => {
counter: number;
isMaxCountReached: boolean;
maxCount: number | undefined;
increaseBy: (value: number) => void;
reset: () => void;
plusTwo: () => void;
minusTwo: () => void;
};
export {};