diff --git a/src/store/index.ts b/src/store/index.ts index b9aaedd..bf0ec90 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -25,7 +25,8 @@ if (process.env.NODE_ENV === "development") { middleware.push(createLogger()); } -export function asyncDispatch(action: ActionMeta, V>): Promise> { +// FIXME: Hack, we don't actually return a promise when one is not passed. +export function asyncDispatch(action: ActionMeta | T, V>): Promise> { return store.dispatch(action) as any; }