fix types
x8er opened this issue · 1 comments
x8er commented
"@types/apollo-upload-client": "^17.0.2"
"apollo-upload-client": "^18.0.1"
doesn't work together
jaydenseric commented
According to the v18 changelog major changes:
https://github.com/jaydenseric/apollo-upload-client/releases/tag/v18.0.0
Implemented TypeScript types via JSDoc comments.
Types published in
@types/apollo-upload-client
should no longer be used.Projects must configure TypeScript to use types from the ECMAScript modules that have a
// @ts-check
comment:
compilerOptions.allowJs
should betrue
.compilerOptions.maxNodeModuleJsDepth
should be reasonably large, e.g.10
.compilerOptions.module
should be"node16"
or"nodenext"
.