build(ui): add vite types to tsconfig

This commit is contained in:
psychedelicious 2024-08-16 18:56:04 +10:00
parent edc733abd9
commit c7ba7ac876

View File

@ -3,6 +3,7 @@
"target": "ESNext", "target": "ESNext",
"useDefineForClassFields": true, "useDefineForClassFields": true,
"lib": ["DOM", "DOM.Iterable", "ESNext"], "lib": ["DOM", "DOM.Iterable", "ESNext"],
"types": ["vite/client"],
"allowJs": false, "allowJs": false,
"skipLibCheck": true, "skipLibCheck": true,
"esModuleInterop": true, "esModuleInterop": true,
@ -29,7 +30,8 @@
"references": [{ "path": "./tsconfig.node.json" }], "references": [{ "path": "./tsconfig.node.json" }],
"ts-node": { "ts-node": {
"compilerOptions": { "compilerOptions": {
"jsx": "preserve" "jsx": "preserve",
"types": ["vite/client"]
}, },
"esm": true "esm": true
} }