jalt-product-card
Version:
Congrats! You just saved yourself hours of work by bootstrapping this project with TSDX. Let’s get you oriented with what’s here and how to use it.
16 lines (15 loc) • 510 B
TypeScript
import { InitialValue, onChangeArgs, Product } from '../interfaces/interfaces';
interface useProductArgs {
product: Product;
onChange?: (args: onChangeArgs) => void;
value?: number;
initialValues?: InitialValue;
}
export declare const useProduct: ({ onChange, product, value, initialValues }: useProductArgs) => {
counter: number;
increaseBy: (value: number) => void;
reset: () => void;
maxCount: number | undefined;
isMaxCountReached: boolean;
};
export {};