dnr-product-card
Version:
This is a test deployment package to npm
16 lines (15 loc) • 504 B
TypeScript
import { OnChangeArgs, Product, InitialValues } from '../interfaces/interfaces';
interface Props {
onChange?: (args: OnChangeArgs) => void;
product: Product;
value: number;
initialValues?: InitialValues;
}
export declare const useProduct: ({ onChange, product, value, initialValues, }: Props) => {
counter: number;
isMaxCountReached: boolean;
maxCount: number | undefined;
increaseBy: (val: number) => void | undefined;
reset: () => void;
};
export {};