main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
696 bytes
|
Rev | Line | |
---|
[d565449] | 1 | export declare type IHookStateInitialSetter<S> = () => S;
|
---|
| 2 | export declare type IHookStateInitAction<S> = S | IHookStateInitialSetter<S>;
|
---|
| 3 | export declare type IHookStateSetter<S> = ((prevState: S) => S) | (() => S);
|
---|
| 4 | export declare type IHookStateSetAction<S> = S | IHookStateSetter<S>;
|
---|
| 5 | export declare type IHookStateResolvable<S> = S | IHookStateInitialSetter<S> | IHookStateSetter<S>;
|
---|
| 6 | export declare function resolveHookState<S>(nextState: IHookStateInitAction<S>): S;
|
---|
| 7 | export declare function resolveHookState<S, C extends S>(nextState: IHookStateSetAction<S>, currentState?: C): S;
|
---|
| 8 | export declare function resolveHookState<S, C extends S>(nextState: IHookStateResolvable<S>, currentState?: C): S;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.