Skip to content

Commit 7f82fe1

Browse files
authored
docs: fix TypeScript declaration filename to match Vite conventions (#43)
1 parent 0bf9d7a commit 7f82fe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export default defineConfig({
151151
## Typing `import.meta.env`
152152

153153
In order to have a type-safe `import.meta.env`, the ideal is to use the dedicated configuration file `env.ts`.
154-
Once this is done, you would only need to add an `env.d.ts` in `src/` folder to augment `ImportMetaEnv` (as [suggested here](https://vitejs.dev/guide/env-and-mode.html#env-files) ) with the following content:
154+
Once this is done, you would only need to add an `vite-env.d.ts` in `src/` folder to augment `ImportMetaEnv` (as [suggested here](https://vitejs.dev/guide/env-and-mode.html#env-files) ) with the following content:
155155

156156
```ts
157157
/// <reference types="vite/client" />

0 commit comments

Comments
 (0)