Created
February 6, 2017 09:05
-
-
Save crisu83/75a9c2433d14a6919017be40288ff3d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yarn run v0.19.1 | |
$ flow; test $? -eq 0 -o $? -eq 2 | |
The flow server's version didn't match the client's, so it exited. | |
Going to launch a new one. | |
Launching Flow server for /Users/juuso/projects/poc | |
Spawned flow server (pid=15149) | |
Logs will go to /private/tmp/flow/zSUserszSjuusozSprojectszSpoc.log | |
src/hello/saga.js:13 | |
13: fork(function* () { | |
^ function call. Could not decide which case to select | |
13: fork(function* () { | |
^^^^ intersection type | |
Case 2 may work: | |
396: & (<R, Fn: Fn0<R>>(fn: Fn, ...rest: Array<void>) => ForkEffect0<null, Fn>) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ polymorphic type: function type. See lib: flow-typed/npm/redux-saga_v0.13.x.js:396 | |
But if it doesn't, case 3 looks promising too: | |
397: & (<T1, R, Fn: Fn1<T1, R>>(fn: Fn, t1: T1, ...rest: Array<void>) => ForkEffect1<null, Fn, T1>) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ polymorphic type: function type. See lib: flow-typed/npm/redux-saga_v0.13.x.js:397 | |
Please provide additional annotation(s) to determine whether case 2 works (or consider merging it with case 3): | |
13: fork(function* () { | |
^ return | |
src/root/configureStore.js:18 | |
18: const store = createStore(rootReducer, enhancer) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function call. Function cannot be called on any member of intersection type | |
18: const store = createStore(rootReducer, enhancer) | |
^^^^^^^^^^^ intersection | |
Member 1: | |
41: declare function createStore<S, A>(reducer: Reducer<S, A>, enhancer?: StoreEnhancer<S, A>): Store<S, A>; | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ polymorphic type: function type. See lib: flow-typed/npm/redux_v3.x.x.js:41 | |
Error: | |
41: declare function createStore<S, A>(reducer: Reducer<S, A>, enhancer?: StoreEnhancer<S, A>): Store<S, A>; | |
^^^^^^^^^^^^^ function type. Callable signature not found in. See lib: flow-typed/npm/redux_v3.x.x.js:41 | |
18: const store = createStore(rootReducer, enhancer) | |
^^^^^^^^^^^ object type | |
Member 2: | |
42: declare function createStore<S, A>(reducer: Reducer<S, A>, preloadedState: S, enhancer?: StoreEnhancer<S, A>): Store<S, A>; | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ polymorphic type: function type. See lib: flow-typed/npm/redux_v3.x.x.js:42 | |
Error: | |
42: declare function createStore<S, A>(reducer: Reducer<S, A>, preloadedState: S, enhancer?: StoreEnhancer<S, A>): Store<S, A>; | |
^^^^^^^^^^^^^ function type. Callable signature not found in. See lib: flow-typed/npm/redux_v3.x.x.js:42 | |
18: const store = createStore(rootReducer, enhancer) | |
^^^^^^^^^^^ object type | |
src/root/createRootReducer.js:8 | |
8: export default (): RootState => | |
^^^^^^^^^ property `hello` of object type. Property not found in | |
9: combineReducers({ | |
^ function type | |
Found 3 errors | |
✨ Done in 8.89s. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment