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:
378 bytes
|
Rev | Line | |
---|
[d565449] | 1 | import { IHookStateInitAction, IHookStateSetAction } from '../misc/hookState';
|
---|
| 2 | export declare function createGlobalState<S = any>(initialState: IHookStateInitAction<S>): () => [S, (state: IHookStateSetAction<S>) => void];
|
---|
| 3 | export declare function createGlobalState<S = undefined>(): () => [
|
---|
| 4 | S,
|
---|
| 5 | (state: IHookStateSetAction<S>) => void
|
---|
| 6 | ];
|
---|
| 7 | export default createGlobalState;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.