mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-27 08:32:56 +00:00
13 lines
410 B
TypeScript
13 lines
410 B
TypeScript
export interface UseCounterOptions {
|
|
min?: number;
|
|
max?: number;
|
|
}
|
|
export interface UseCounterHandlers {
|
|
increment: () => void;
|
|
decrement: () => void;
|
|
set: (value: number) => void;
|
|
reset: () => void;
|
|
}
|
|
export type UseCounterReturnValue = [number, UseCounterHandlers];
|
|
export declare function useCounter(initialValue?: number, options?: UseCounterOptions): [number, UseCounterHandlers];
|