diff --git a/packages/client/@types/env.d.ts b/packages/client/@types/env.d.ts deleted file mode 100644 index 28ae7076ee..0000000000 --- a/packages/client/@types/env.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/// - -interface ImportMetaEnv { - readonly VITE_APP_TITLE: string -} - -interface ImportMeta { - readonly env: ImportMetaEnv -} diff --git a/packages/client/tsconfig.json b/packages/client/tsconfig.json index e4e5fee532..2c387286a4 100644 --- a/packages/client/tsconfig.json +++ b/packages/client/tsconfig.json @@ -19,6 +19,8 @@ "experimentalDecorators": true, "resolveJsonModule": true, "allowSyntheticDefaultImports": true, + "isolatedModules": true, + "useDefineForClassFields": true, "baseUrl": ".", "paths": { "@/*": ["./src/*"], @@ -27,6 +29,9 @@ "node_modules/@types", "@types", ], + "types": [ + "vite/client", + ], "lib": [ "esnext", "dom"