Skip to content
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

Type inconsistency after opening a typescript provided lib file #772

Open
ef4 opened this issue Sep 27, 2024 · 0 comments
Open

Type inconsistency after opening a typescript provided lib file #772

ef4 opened this issue Sep 27, 2024 · 0 comments

Comments

@ef4
Copy link
Contributor

ef4 commented Sep 27, 2024

Reproduction:

  1. Using viscose glint extension, while viewing some ts or gts containing a browser API (I used crypto.subtle.digest()), jump to definition on the function. This will open a file like lib.dom.d.ts inside the currently used typescript package.
  2. Navigate back to your own code. Now there are type errors all over the place, presumably due to having loaded some duplicate types out of the library file that were not present before.
  3. Close the vscoe tab containing lib.dom.d.ts and restart Glint. The type errors go away.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant