Skip to content

Instantly share code, notes, and snippets.

@baransu
Created January 30, 2018 21:17
Show Gist options
  • Save baransu/8067a88c06f9d5593cadc982da06aba3 to your computer and use it in GitHub Desktop.
Save baransu/8067a88c06f9d5593cadc982da06aba3 to your computer and use it in GitHub Desktop.
Error: node_modules/redux-persist/lib/createPersistoid.js.flow:38
38: timeIterator = setInterval(processNextKey, throttle)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ IntervalID. This type is incompatible with
23: let timeIterator: ?number = null
^^^^^^ number
Error: node_modules/redux-persist/lib/createPersistoid.js.flow:46
46: if (timeIterator) clearInterval(timeIterator)
^^^^^^^^^^^^ number. This type is incompatible with the expected param type of
732: declare function clearInterval(intervalId?: IntervalID): void;
^^^^^^^^^^ IntervalID. See lib: /private/tmp/flow/flowlib_4dfba8a/core.js:732
Error: node_modules/redux-persist/lib/persistStore.js.flow:67
67: persistor.purge = () => {
^^^^^ property `purge`. Property not found in
67: persistor.purge = () => {
^^^^^^^^^ Store
Error: node_modules/redux-persist/lib/persistStore.js.flow:78
78: persistor.flush = () => {
^^^^^ property `flush`. Property not found in
78: persistor.flush = () => {
^^^^^^^^^ Store
Error: node_modules/redux-persist/lib/persistStore.js.flow:89
89: persistor.pause = () => {
^^^^^ property `pause`. Property not found in
89: persistor.pause = () => {
^^^^^^^^^ Store
Error: node_modules/redux-persist/lib/persistStore.js.flow:112
112: if (boostrappedCb && persistor.getState().bootstrapped) {
^^^^^^^^^^^^ property `bootstrapped`. Property not found in possibly undefined value
112: if (boostrappedCb && persistor.getState().bootstrapped) {
^^^^^^^^^^^^^^^^^^^^ undefined
Error: node_modules/redux-persist/lib/persistStore.js.flow:118
118: persistor.persist = () => {
^^^^^^^ property `persist`. Property not found in
118: persistor.persist = () => {
^^^^^^^^^ Store
Error: node_modules/redux-persist/lib/persistStore.js.flow:124
124: return persistor
^^^^^^^^^ Store. This type is incompatible with the expected return type of
44: ): Persistor {
^^^^^^^^^ Persistor
Property `flush` is incompatible:
44: ): Persistor {
^^^^^^^^^ property `flush`. Property not found in
124: return persistor
^^^^^^^^^ Store
Error: node_modules/redux-persist/lib/persistStore.js.flow:124
124: return persistor
^^^^^^^^^ Store. This type is incompatible with the expected return type of
44: ): Persistor {
^^^^^^^^^ Persistor
Property `getState` is incompatible:
24: getState(): S,
^^^^^^^^^^^^^ function type. This type is incompatible with. See lib: flow-typed/npm/redux_v3.x.x.js:24
80: +getState: () => PersistorState,
^^^^^^^^^^^^^^^^^^^^ function type. See: node_modules/redux-persist/lib/types.js.flow:80
The return is incompatible:
65: let persistor = createStore(persistorReducer, undefined, options.enhancer)
^^^^^^^^^ undefined. This type is incompatible with
80: +getState: () => PersistorState,
^^^^^^^^^^^^^^ PersistorState. See: node_modules/redux-persist/lib/types.js.flow:80
Error: node_modules/redux-persist/lib/persistStore.js.flow:124
124: return persistor
^^^^^^^^^ Store. This type is incompatible with the expected return type of
44: ): Persistor {
^^^^^^^^^ Persistor
Property `purge` is incompatible:
44: ): Persistor {
^^^^^^^^^ property `purge`. Property not found in
124: return persistor
^^^^^^^^^ Store
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment