Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit 25c63d1

Browse files
authored
Update README.md
1 parent 4c14b45 commit 25c63d1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,20 @@ npm i -D @vue/runtime-dom
129129

130130
[Learn more](https://github.com/johnsoncodehk/volar#using)
131131

132+
###### Global Types
133+
134+
If the global types are missing for your IDE, update your `tsconfig.json` with:
135+
136+
```jsonc
137+
{
138+
"compilerOptions": {
139+
"types": [
140+
"vue2-script-setup-transform/types"
141+
]
142+
}
143+
}
144+
```
145+
132146
###### ESLint
133147

134148
If you are using ESLint, you might get `@typescript-eslint/no-unused-vars` warning with `<script setup>`. You can disable it and add `noUnusedLocals: true` in your `tsconfig.json`, Volar will infer the real missing locals correctly for you.

0 commit comments

Comments
 (0)