@@ -15,17 +15,17 @@ type OperatorCallback<Context, Value, NewValue = Value> = (
1515interface Operators < State , Context , InitialValue , Value > {
1616 mutation (
1717 cb : ( value : Value , state : State ) => any
18- ) : InitialValue extends undefined
18+ ) : InitialValue extends void
1919 ? NoValueAction < State , Context , InitialValue , Value >
2020 : Action < State , Context , InitialValue , Value >
2121 do (
2222 cb : ( value : Value , context : Context ) => void
23- ) : InitialValue extends undefined
23+ ) : InitialValue extends void
2424 ? NoValueAction < State , Context , InitialValue , Value >
2525 : Action < State , Context , InitialValue , Value >
2626 map < NewValue > (
2727 cb : ( value : Value , context : Context ) => NewValue | Promise < NewValue >
28- ) : InitialValue extends undefined
28+ ) : InitialValue extends void
2929 ? NoValueAction < State , Context , InitialValue , NewValue >
3030 : Action < State , Context , InitialValue , NewValue >
3131 try < ResolveValue , RejectValue , NewValue > (
@@ -44,7 +44,7 @@ interface Operators<State, Context, InitialValue, Value> {
4444 RejectValue
4545 >
4646 }
47- ) : InitialValue extends undefined
47+ ) : InitialValue extends void
4848 ? NoValueAction < State , Context , InitialValue , ResolveValue | RejectValue >
4949 : Action < State , Context , InitialValue , ResolveValue | RejectValue >
5050 when < TrueValue , FalseValue > (
@@ -53,17 +53,17 @@ interface Operators<State, Context, InitialValue, Value> {
5353 true : Action < State , Context , Value , TrueValue >
5454 false : Action < State , Context , Value , FalseValue >
5555 }
56- ) : InitialValue extends undefined
56+ ) : InitialValue extends void
5757 ? NoValueAction < State , Context , InitialValue , TrueValue | FalseValue >
5858 : Action < State , Context , InitialValue , TrueValue | FalseValue >
5959 filter (
6060 cb : ( value : Value , context : Context ) => boolean
61- ) : InitialValue extends undefined
61+ ) : InitialValue extends void
6262 ? NoValueAction < State , Context , InitialValue , Value >
6363 : Action < State , Context , InitialValue , Value >
6464 debounce (
6565 timer : number
66- ) : InitialValue extends undefined
66+ ) : InitialValue extends void
6767 ? NoValueAction < State , Context , InitialValue , Value >
6868 : Action < State , Context , InitialValue , Value >
6969}
@@ -89,7 +89,7 @@ export default function createActionFactory<State, Context>(proxyStateTree) {
8989 value : any ,
9090 executionContext : ExecutionContext
9191 ) => any | Promise < any >
92- ) : InitialValue extends undefined
92+ ) : InitialValue extends void
9393 ? NoValueAction < State , Context , InitialValue , Value >
9494 : Action < State , Context , InitialValue , Value > {
9595 return Object . assign (
0 commit comments