@@ -37,9 +37,11 @@ type ExtractIModelDispatcherAsyncFromEffect<
3737 ? IcestoreDispatcherAsync < void , void , R >
3838 : E extends ( payload : infer P ) => Promise < infer R >
3939 ? IcestoreDispatcherAsync < P , void , R >
40- : E extends ( payload : infer P , meta : infer M ) => Promise < infer R >
41- ? IcestoreDispatcherAsync < P , M , R >
42- : IcestoreDispatcherAsync < any , any , any >
40+ : E extends ( payload : infer P , rootState : any ) => Promise < infer R >
41+ ? IcestoreDispatcherAsync < P , void , R >
42+ : E extends ( payload : infer P , rootState : any , meta : infer M ) => Promise < infer R >
43+ ? IcestoreDispatcherAsync < P , M , R >
44+ : IcestoreDispatcherAsync < any , any , any >
4345
4446type ExtractIModelDispatchersFromEffectsObject <
4547 effects extends ModelEffects < any >
@@ -64,9 +66,9 @@ type ExtractIModelDispatcherFromReducer<R> = R extends () => any
6466 ? IcestoreDispatcher < void , void >
6567 : R extends ( state : infer S ) => infer S
6668 ? IcestoreDispatcher < void , void >
67- : R extends ( state : infer S , payload : infer P ) => infer S
69+ : R extends ( state : infer S , payload : infer P ) => ( infer S | void )
6870 ? IcestoreDispatcher < P , void >
69- : R extends ( state : infer S , payload : infer P , meta : infer M ) => infer S
71+ : R extends ( state : infer S , payload : infer P , meta : infer M ) => ( infer S | void )
7072 ? IcestoreDispatcher < P , M >
7173 : IcestoreDispatcher < any , any >
7274
0 commit comments