We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The docs currently seem to recommend adding .d.ts files:
.d.ts
I had success by just adding to compilerOptions.types in tsconfig.json. Maybe that's all that is needed?
compilerOptions.types
tsconfig.json
"compilerOptions": { "types": [ "jest-extended", ], },
In case vitest globals are in use, one can add vitest/globals to that array.
vitest/globals
The text was updated successfully, but these errors were encountered:
Those recommendations were so you could get autocomplete working in things like VS Code IIRC.
Sorry, something went wrong.
I got autocomplete working with above in Sublime Text LSP-typescript:
Edited above, it appears VSCode uses a different LSP called tsserver, but I can't imagine that one failing on those types, but I will test it later.
tsserver
Can confirm, using the types array work in VS Code.
types
No branches or pull requests
The docs currently seem to recommend adding
.d.ts
files:I had success by just adding to
compilerOptions.types
intsconfig.json
. Maybe that's all that is needed?In case vitest globals are in use, one can add
vitest/globals
to that array.The text was updated successfully, but these errors were encountered: