We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c7f69af + ac9244f commit b98ec58Copy full SHA for b98ec58
index.d.ts
@@ -18,7 +18,7 @@ export interface Store<K> {
18
19
export default function createStore<K>(state?: K): Store<K>;
20
21
-export type ActionFn<K> = (state: K) => object;
+export type ActionFn<K> = (state: K, ...args: any[]) => Promise<Partial<K>> | Partial<K> | void;
22
23
export interface ActionMap<K> {
24
[actionName: string]: ActionFn<K>;
0 commit comments