Correct way of extending tsconfig lib in a vue project #14220
Unanswered
Der-Alex
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My question is kind of related to this topic: https://github.com/orgs/vuejs/discussions/13583
On a fresh vue installation with typescript, a
tsconfig.app.jsonwill be created, that extends https://github.com/vuejs/tsconfig/blob/main/tsconfig.dom.json.The
tsconfig.dom.jsonsays:So Baseline availabe features like
Object.groupByare unknown to typescript.As far as I understand, I would have to add my own libs to the
tsconfig.app.json:{ "compilerOptions": { "lib": [ "ESNext", // Or whatever I need "DOM", // I have to set all the other values, because I override lib here "DOM.Iterable" ], } }To me this feels kind of wrong, because as soon as the
tsconfig.dom.jsonchanges in a future update, my lib configuration could override lib configurations fromtsconfig.dom.jsonthat I don't know about.So is this the correct way to deal with making new features available? Or is there some smarter way that I don't know?
Beta Was this translation helpful? Give feedback.
All reactions