Fix: TypeScript config for IDE compatibility
This commit is contained in:
3
frontend/src/env.d.ts
vendored
3
frontend/src/env.d.ts
vendored
@@ -4,6 +4,9 @@ interface ImportMetaEnv {
|
|||||||
readonly PUBLIC_DIRECTUS_URL: string;
|
readonly PUBLIC_DIRECTUS_URL: string;
|
||||||
readonly DIRECTUS_ADMIN_TOKEN: string;
|
readonly DIRECTUS_ADMIN_TOKEN: string;
|
||||||
readonly PUBLIC_PLATFORM_DOMAIN: string;
|
readonly PUBLIC_PLATFORM_DOMAIN: string;
|
||||||
|
readonly DEV: boolean;
|
||||||
|
readonly PROD: boolean;
|
||||||
|
readonly MODE: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ImportMeta {
|
interface ImportMeta {
|
||||||
|
|||||||
@@ -1,22 +1,35 @@
|
|||||||
{
|
{
|
||||||
"extends": "astro/tsconfigs/strict",
|
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"target": "ESNext",
|
||||||
|
"module": "ESNext",
|
||||||
|
"moduleResolution": "bundler",
|
||||||
|
"lib": [
|
||||||
|
"ESNext",
|
||||||
|
"DOM",
|
||||||
|
"DOM.Iterable"
|
||||||
|
],
|
||||||
|
"jsx": "react-jsx",
|
||||||
|
"jsxImportSource": "react",
|
||||||
|
"strict": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"noEmit": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": [
|
"@/*": [
|
||||||
"src/*"
|
"src/*"
|
||||||
],
|
|
||||||
"@/components/*": [
|
|
||||||
"src/components/*"
|
|
||||||
],
|
|
||||||
"@/lib/*": [
|
|
||||||
"src/lib/*"
|
|
||||||
],
|
|
||||||
"@/types/*": [
|
|
||||||
"src/types/*"
|
|
||||||
]
|
]
|
||||||
},
|
|
||||||
"jsx": "react-jsx",
|
|
||||||
"jsxImportSource": "react"
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"src/**/*",
|
||||||
|
"src/env.d.ts"
|
||||||
|
],
|
||||||
|
"exclude": [
|
||||||
|
"node_modules",
|
||||||
|
"dist"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user