Proposed: Centralized redux action #2035

Merged
chrisza4 merged 4 commits from centralized-redux-action into master 2018-10-14 02:54:06 +02:00
Showing only changes of commit 2f02d6f656 - Show all commits

View file

@ -3,6 +3,7 @@ import * as ACTIONS from 'constants/action_types';
import * as NOTIFICATION_TYPES from 'constants/notification_types';
import { handleActions } from 'util/redux-utils';
import type { Subscription } from 'types/subscription';
import type { Dispatch as ReduxDispatch } from 'types/redux';
export type NotificationType =
| NOTIFICATION_TYPES.DOWNLOADING
@ -79,7 +80,7 @@ export type Action =
| CheckSubscriptionStarted
| CheckSubscriptionCompleted
| Function;
export type Dispatch = (action: Action) => any;
export type Dispatch = ReduxDispatch<Action>;
const defaultState = {
subscriptions: [],