UNPKG

gliscano-product-card

Version:

Product card is a test package, it was created with React and Typescript using State Initializer Component Pattern

16 lines (15 loc) 499 B
import { Product } from '../interfaces'; import { OnChangeArgs, InitialValues } from '../interfaces/index'; interface useProductArgs { product: Product; onChange?: (arg: OnChangeArgs) => void; value?: number; initialValues?: InitialValues; } export declare const useProduct: ({ onChange, product, value, initialValues }: useProductArgs) => { counter: number; isMaxCounter: boolean; increaseBy: (value: number) => void; reset: () => void; }; export {};