Skip to content

Commit cc7eac7

Browse files
refactor(overmind): remove reaction leftovers
1 parent 98e6f55 commit cc7eac7

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

packages/node_modules/overmind/src/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
TConfig,
1717
TDerive,
1818
TOperator,
19-
TReaction,
2019
TValueContext,
2120
TOnInitialize,
2221
TStateObject,
@@ -40,8 +39,6 @@ export type Derive<Parent extends TStateObject, Value> = TDerive<
4039
Value
4140
>
4241

43-
export type Reaction = TReaction<TheConfig>
44-
4542
export type OnInitialize = TOnInitialize<TheConfig>
4643

4744
const isPlainObject = require('is-plain-object')

packages/node_modules/overmind/src/types.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,6 @@ export type TDerive<
7575
state: ResolveState<Config['state'] & {}>
7676
) => Value
7777

78-
export type TReaction<Config extends Configuration> = (
79-
reaction: (
80-
getState: (state: ResolveState<Config['state']>) => any,
81-
action: TAction<Config, void> | TOperator<Config, void, any>
82-
) => any
83-
) => any
84-
8578
export type TOnInitialize<Config extends Configuration> = (
8679
context: TValueContext<Config, Overmind<Config>>
8780
) => void

0 commit comments

Comments
 (0)