Skip to content

Isn't the create-vue types setup broken? #11113

Discussion options

You must be logged in to vote

I think you may not be fully aware of the use of references in tsconfig, or maybe I'm missing something?

They essentially allow you to set different configurations for different files. the referenced configs are not applied globally, instead they are only applied to the files matched by each referenced tsconfig.

So the empty lib config will only apply to the test files, not your app files, and vice versa. This is a good thing, because i.e. in test files, we don't want to use TS' lib types for the dom, we want to use the jsdom types - which are added in the vitest config only.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@bmulholland
Comment options

Answer selected by bmulholland
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants