main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
469 bytes
|
Line | |
---|
1 | import { IHookStateInitAction, IHookStateSetAction } from './misc/hookState';
|
---|
2 | export interface CounterActions {
|
---|
3 | inc: (delta?: number) => void;
|
---|
4 | dec: (delta?: number) => void;
|
---|
5 | get: () => number;
|
---|
6 | set: (value: IHookStateSetAction<number>) => void;
|
---|
7 | reset: (value?: IHookStateSetAction<number>) => void;
|
---|
8 | }
|
---|
9 | export default function useCounter(initialValue?: IHookStateInitAction<number>, max?: number | null, min?: number | null): [number, CounterActions];
|
---|
Note:
See
TracBrowser
for help on using the repository browser.