File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/node_modules/overmind/src Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 11import { ResolveActions , ResolveState } from './internalTypes'
22import { Overmind } from './'
3+ import { IS_OPERATOR } from './utils'
34
45/** ===== PUBLIC API
56 */
@@ -44,11 +45,14 @@ export interface IAction<ThisConfig extends IConfiguration, Value> {
4445
4546// We do not type operators as their low level implementation, but rather
4647// how it is consumed by the developer
47- export type IOperator <
48+ export interface IOperator <
4849 ThisConfig extends IConfiguration ,
4950 Input ,
5051 Output = Input
51- > = ( context : IContext < ThisConfig > , value : Input ) => Output
52+ > {
53+ ( context : IContext < ThisConfig > , value : Input ) : Output
54+ [ IS_OPERATOR ] : true
55+ }
5256
5357export type IDerive <
5458 ThisConfig extends IConfiguration ,
You can’t perform that action at this time.
0 commit comments