From 2f02d6f6562131ac99167d945259e947cf9cd173 Mon Sep 17 00:00:00 2001 From: Chakrit Likitkhajorn Date: Sun, 14 Oct 2018 00:03:09 +0700 Subject: [PATCH] Refactor actions/subscription.js to use redux action centralized --- src/renderer/redux/reducers/subscriptions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/redux/reducers/subscriptions.js b/src/renderer/redux/reducers/subscriptions.js index 348528007..0ccfbd7db 100644 --- a/src/renderer/redux/reducers/subscriptions.js +++ b/src/renderer/redux/reducers/subscriptions.js @@ -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; const defaultState = { subscriptions: [],