Skip to content

Commit 965da26

Browse files
committed
use triple slash directive for vite
1 parent 9524235 commit 965da26

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

apps/web/src/vite-env.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/* eslint-disable @typescript-eslint/consistent-type-definitions */
22

3+
/// <reference types="vite/client" />
4+
35
// All of these should be undefined in production
46
interface ImportMetaDevEnv {
57
readonly VITE_DEV_BYPASS_AUTH?: string;

apps/web/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"lib": ["DOM", "DOM.Iterable", "ESNext"],
66
"paths": {
77
"@/*": ["./src/*"]
8-
},
9-
"types": ["vite/client"]
8+
}
109
},
1110
"include": ["src/**/*", "vite.config.ts", "vitest.config.ts"]
1211
}

0 commit comments

Comments
 (0)