Skip to content

Commit

Permalink
Upgrade Flow to 0.61.0
Browse files Browse the repository at this point in the history
  • Loading branch information
frantic committed Dec 16, 2017
1 parent 8060bc1 commit e2a752b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion actions.js
Expand Up @@ -14,7 +14,7 @@ function callAPI(endpoint, params) {
}

export async function logIn(login: string, pass: string): Promise<Action> {
const response = await callAPI('/login', login, pass);
const response = await callAPI('/login', {login, pass});
if (!response.success) {
throw new Error('Login failed');
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -13,7 +13,7 @@
"babel-polyfill": "^6.9.1",
"babel-preset-es2015": "^6.9.0",
"babel-preset-react": "^6.5.0",
"flow-bin": "^0.26.0",
"flow-bin": "^0.61.0",
"webpack": "^1.13.1"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion store.js
Expand Up @@ -4,7 +4,7 @@ import * as Redux from 'redux';
import * as reducers from './reducers';

import type {Action} from './actions';
export type Dispatch = (action: Action | Promise<Action>) => Promise;
export type Dispatch = (action: Action | Promise<Action>) => Promise<*>;

const promiseMiddleware = store => next => action =>
typeof action.then === 'function'
Expand Down

0 comments on commit e2a752b

Please sign in to comment.