Skip to content

Commit 4262acb

Browse files
committed
reduxTypes: Cut out NavigationAction from Dispatch and PlainDispatch.
In the previous commit, we stopped dispatching navigation actions through Redux.
1 parent e8e808d commit 4262acb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/reduxTypes.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import type { InputSelector } from 'reselect';
1212

1313
import type { Account, Outbox } from './types';
14-
import type { Action, NavigationAction } from './actionTypes';
14+
import type { Action } from './actionTypes';
1515
import type {
1616
Topic,
1717
HuddlesUnreadItem,
@@ -384,9 +384,9 @@ export type Selector<TResult, TParam = void> = InputSelector<GlobalState, TParam
384384

385385
export type GetState = () => GlobalState;
386386

387-
export type PlainDispatch = <A: Action | NavigationAction>(action: A) => A;
387+
export type PlainDispatch = <A: Action>(action: A) => A;
388388

389389
export interface Dispatch {
390-
<A: Action | NavigationAction>(action: A): A;
390+
<A: Action>(action: A): A;
391391
<T>((Dispatch, GetState) => T): T;
392392
}

0 commit comments

Comments
 (0)