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
Yeah, this looks to be the same issue as #1172. Currently quick-lint-js does not respect declare global in .d.ts files like this. I wrote some possible solutions in this comment: #1172 (comment)
Some possible solutions:
Rewrite your code to use import instead of globals.
Manually replicate app.d.ts to your quick-lint-js.config.
Use a tool which replicates app.d.ts's globals to your quick-lint-js.config. (This tool does not yet exist.)
Use a "globals-files" feature in quick-lint-js.config to specify source files. You would list "globals-files": ["src/app.d.ts"]. (This feature does not yet exist.)
Have quick-lint-js auto-scan for .ts and .d.ts files which declare globals, similar to what TypeScript's compiler does. (This feature does not yet exist.)
I am getting the error
use of undeclared type
onTournament
for the following code:even though, in vsc i can ctrl click on
Tournament
and it takes me to the definition in mytypes.d.ts
file.i can even hover it and it will show me the type information
The text was updated successfully, but these errors were encountered: