Skip to content

Commit

Permalink
flow: Provide missing types
Browse files Browse the repository at this point in the history
Previously Flow did replace the undefined types with `any`.
Not doing that anymore results in an error. So, just
import the correct type to fix the issue.
  • Loading branch information
borisyankov committed Sep 12, 2018
1 parent 9a9046a commit c5b726e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/nav/navActions.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
/* @flow */
import { NavigationActions } from 'react-navigation';

import type { NavigateAction, GetState, Message, Narrow, ApiServerSettings } from '../types';
import type {
Dispatch,
NavigateAction,
GetState,
Message,
Narrow,
ApiServerSettings,
} from '../types';
import { getSameRoutesCount } from '../selectors';

export const navigateBack = () => (dispatch: Dispatch, getState: GetState): NavigateAction =>
Expand Down
1 change: 1 addition & 0 deletions src/utils/tests.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* @flow */
import React from 'react';
import { Provider } from 'react-redux';
import type { ReactTestRenderer } from 'react-test-renderer';
import renderer from 'react-test-renderer';

import StylesProvider from '../boot/StylesProvider';
Expand Down

0 comments on commit c5b726e

Please sign in to comment.