Skip to content

What is the purpose of tsconfig file if typescript was not selected while project setup? #2809

Answered by bluwy
korywka asked this question in Q&A
Discussion options

You must be logged in to vote

tsconfig.json and global.d.ts are used by your IDE (e.g. vscode) to provide intellisense/autocompletion for your project. The main usecase in SvelteKit is to set up the path alias so that auto imports take $lib into account too. All these doesn't necessarily need typescript installed in your project because your IDE would likely have a copy built-in already.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@korywka
Comment options

@bluwy
Comment options

bluwy Nov 18, 2021
Collaborator

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