source: imaps-frontend/node_modules/react-use/lib/misc/hookState.d.ts@ d565449

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
RevLine 
[d565449]1export declare type IHookStateInitialSetter<S> = () => S;
2export declare type IHookStateInitAction<S> = S | IHookStateInitialSetter<S>;
3export declare type IHookStateSetter<S> = ((prevState: S) => S) | (() => S);
4export declare type IHookStateSetAction<S> = S | IHookStateSetter<S>;
5export declare type IHookStateResolvable<S> = S | IHookStateInitialSetter<S> | IHookStateSetter<S>;
6export declare function resolveHookState<S>(nextState: IHookStateInitAction<S>): S;
7export declare function resolveHookState<S, C extends S>(nextState: IHookStateSetAction<S>, currentState?: C): S;
8export declare function resolveHookState<S, C extends S>(nextState: IHookStateResolvable<S>, currentState?: C): S;
Note: See TracBrowser for help on using the repository browser.