mirror of
https://github.com/streamich/react-use.git
synced 2026-01-18 14:06:52 +00:00
5 lines
213 B
TypeScript
5 lines
213 B
TypeScript
export declare type Increment = (inc?: number) => void;
|
|
export declare type Set = (value: number) => void;
|
|
declare const useCounter: (initialValue?: number) => [number, Increment, Set];
|
|
export default useCounter;
|