typed-ember / glint

TypeScript powered tooling for Glimmer templates
https://typed-ember.gitbook.io/glint
MIT License
110 stars 51 forks source link

Type inconsistency after opening a typescript provided lib file #772

Open ef4 opened 1 month ago

ef4 commented 1 month ago

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.