|
1 | | -import { createHook } from 'overmind-react'; |
2 | 1 | import { |
| 2 | + IAction, |
3 | 3 | IConfig, |
| 4 | + IDerive, |
4 | 5 | IOnInitialize, |
5 | | - IAction, |
6 | 6 | IOperator, |
7 | | - IDerive, |
| 7 | + IReaction, |
8 | 8 | IState, |
9 | 9 | } from 'overmind'; |
| 10 | +import { createHook } from 'overmind-react'; |
10 | 11 | import { merge, namespaced } from 'overmind/config'; |
| 12 | + |
| 13 | +import * as actions from './actions'; |
11 | 14 | import { createConnect } from './createConnect'; |
12 | 15 | import * as effects from './effects'; |
13 | | -import { state } from './state'; |
14 | | -import { onInitialize } from './onInitialize'; |
15 | | -import * as actions from './actions'; |
16 | | -import * as preferences from './namespaces/preferences'; |
17 | | -import * as userNotifications from './namespaces/userNotifications'; |
18 | | -import * as patron from './namespaces/patron'; |
19 | | -import * as editor from './namespaces/editor'; |
20 | | -import * as live from './namespaces/live'; |
21 | | -import * as workspace from './namespaces/workspace'; |
| 16 | +import { createModals } from './factories'; |
| 17 | +import * as modals from './modals'; |
22 | 18 | import * as dashboard from './namespaces/dashboard'; |
23 | 19 | import * as deployment from './namespaces/deployment'; |
| 20 | +import * as editor from './namespaces/editor'; |
| 21 | +import * as explore from './namespaces/explore'; |
24 | 22 | import * as files from './namespaces/files'; |
25 | 23 | import * as git from './namespaces/git'; |
26 | | -import * as explore from './namespaces/explore'; |
| 24 | +import * as live from './namespaces/live'; |
| 25 | +import * as patron from './namespaces/patron'; |
| 26 | +import * as preferences from './namespaces/preferences'; |
27 | 27 | import * as profile from './namespaces/profile'; |
28 | 28 | import * as server from './namespaces/server'; |
29 | | -import { createModals } from './factories'; |
30 | | -import * as modals from './modals'; |
| 29 | +import * as userNotifications from './namespaces/userNotifications'; |
| 30 | +import * as workspace from './namespaces/workspace'; |
| 31 | +import { onInitialize } from './onInitialize'; |
| 32 | +import { state } from './state'; |
31 | 33 |
|
32 | 34 | export const config = merge( |
33 | 35 | { |
@@ -61,6 +63,9 @@ export interface OnInitialize extends IOnInitialize<Config> {} |
61 | 63 | export interface Action<Input = void, Output = void> |
62 | 64 | extends IAction<Config, Input, Output> {} |
63 | 65 |
|
| 66 | +export interface Reaction<Input = void, Output = void> |
| 67 | + extends IReaction<Config> {} |
| 68 | + |
64 | 69 | export interface AsyncAction<Input = void, Output = void> |
65 | 70 | extends IAction<Config, Input, Promise<Output>> {} |
66 | 71 |
|
|
0 commit comments