Skip to content

Commit cc54e29

Browse files
fix(types): strict env typings fail when skipLibCheck is false (#20755)
1 parent 7e8e004 commit cc54e29

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/vite/types/importMeta.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ interface ViteTypeOptions {
1111
type ImportMetaEnvFallbackKey =
1212
'strictImportMetaEnv' extends keyof ViteTypeOptions ? never : string
1313

14-
interface ImportMetaEnv {
15-
[key: ImportMetaEnvFallbackKey]: any
14+
interface ImportMetaEnv extends Record<ImportMetaEnvFallbackKey, any> {
1615
BASE_URL: string
1716
MODE: string
1817
DEV: boolean

0 commit comments

Comments
 (0)