osmg-product-card
Version:
This is a testing package for a npm deploy
16 lines (15 loc) • 512 B
TypeScript
import { InitialValues, onChangeArgs, Product } 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;
reset: () => void;
increaseBy: (value: number) => void;
};
export {};