-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing types for 'optimism' npm package in apollo-cache-inmemory. #4327
Comments
Same issue here in React. I downgraded and locked |
install ver 1.3.12 and i dont have any issue |
The TypeScript compiler is apparently not picking up the declare module 'optimism' {
export function wrap<T>(
originalFunction: T,
options?: OptimisticWrapOptions,
): OptimisticWrapperFunction<T>;
} I'll look into it. |
Wow, I should have done this sooner. Super simple: benjamn/optimism@03b3f88 Follow-up to #4158. Should fix #4327.
Since we've been struggling to declare correct types for the `optimism` npm package (for example: #4158, #4327), I finally decided to move the declarations into the `optimism` package itself: benjamn/optimism@03b3f88 Pretty easy! I wish I'd done this sooner. Should fix #4327.
Please try |
Thanks for the quick response @benjamn! It works now. |
i have issue run dev with apollo-cache-inmemory
version: "apollo-cache-inmemory": "^1.4.0"
Im using Vue js with typescripts
file tsconfig.json
file package.json
The text was updated successfully, but these errors were encountered: