Proposed: Centralized redux action #2035
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@ import * as ACTIONS from 'constants/action_types';
|
||||||
import * as NOTIFICATION_TYPES from 'constants/notification_types';
|
import * as NOTIFICATION_TYPES from 'constants/notification_types';
|
||||||
import { handleActions } from 'util/redux-utils';
|
import { handleActions } from 'util/redux-utils';
|
||||||
import type { Subscription } from 'types/subscription';
|
import type { Subscription } from 'types/subscription';
|
||||||
|
import type { Dispatch as ReduxDispatch } from 'types/redux';
|
||||||
|
|
||||||
export type NotificationType =
|
export type NotificationType =
|
||||||
| NOTIFICATION_TYPES.DOWNLOADING
|
| NOTIFICATION_TYPES.DOWNLOADING
|
||||||
|
@ -79,7 +80,7 @@ export type Action =
|
||||||
| CheckSubscriptionStarted
|
| CheckSubscriptionStarted
|
||||||
| CheckSubscriptionCompleted
|
| CheckSubscriptionCompleted
|
||||||
| Function;
|
| Function;
|
||||||
export type Dispatch = (action: Action) => any;
|
export type Dispatch = ReduxDispatch<Action>;
|
||||||
|
|
||||||
const defaultState = {
|
const defaultState = {
|
||||||
subscriptions: [],
|
subscriptions: [],
|
||||||
|
|
Loading…
Reference in a new issue