Use IterableIterator, not MapIterator#259
Conversation
@volar/eslint
@volar/kit
@volar/jsdelivr
@volar/language-core
@volar/language-server
@volar/language-service
@volar/monaco
@volar/source-map
@volar/test-utils
@volar/typescript
@volar/vscode
commit: |
|
MapIterator is a new type introduced in TypeScript 5.6 https://devblogs.microsoft.com/typescript/announcing-typescript-5-6/#strict-builtin-iterator-checks-(and---strictbuiltiniteratorreturn) |
Hmm, sounds like the solution then is to bump our dependency on TypeScript. Volar seems to hug new versions of TS pretty closely; does that mean everyone using Vue tooling is constantly upgrading TS? Or does the tooling use its own version of TS separate from the project workspace? |
|
ah I can just use lib: "ES2021" or some earlier version than ESNext with a newer version of TS and it won't complain |
Some reason the current volar package uses the non-existent
MapIteratorwhen it should be usingIterableIterator. This is causing my local TS compilation to fail. I'm not sure why others aren't encountering it.https://unpkg.com/@volar/language-core@2.4.11/lib/utils.d.ts
Perhaps this PR will fix it; then again, in my local of the Volar library, it correctly generates
IterableIterator, so I don't have a way of testing this fix.