You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With my last npm update apollo-cache-inmemory prevent typescript compilation of my project. The problem is that in 3 functions there isn't a default return. This code will work even without those returns, but I think that this typescript check is not unreasonable and the code can be fixed with a little effort.
This is one of the three error I get:
/home/duma/dev/fooddata-ifn/node_modules/apollo-cache-inmemory/src/queryKeyMaker.ts
(69,33): Not all code paths return a value.
If we look at the code, it is evident that adding a return false between the last two lines of code will fix the problem:
With my last npm update
apollo-cache-inmemory
prevent typescript compilation of my project. The problem is that in 3 functions there isn't a default return. This code will work even without those returns, but I think that this typescript check is not unreasonable and the code can be fixed with a little effort.This is one of the three error I get:
If we look at the code, it is evident that adding a
return false
between the last two lines of code will fix the problem:The same is true for
readFromStore.ts
with the functions on line 113 and 118.Am I right? There's something I'm missing about this?
Versions
The text was updated successfully, but these errors were encountered: