We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 320da18 commit ad7c2d4Copy full SHA for ad7c2d4
core/typescript.md
@@ -13,14 +13,7 @@ import { IContext } from 'overmind'
13
14
export const config = {}
15
16
-// Due to circular typing we have to define an
17
-// explicit typing of state, actions and effects since
18
-// TS 3.9 using a TYPE (not INTERFACE)
19
-export type Context = IContext<{
20
- state: typeof config.state,
21
- actions: typeof config.actions,
22
- effects: typeof config.effects
23
-}>
+export type Context = IContext<typeof config>
24
```
25
{% endtab %}
26
{% endtabs %}
0 commit comments