Skip to content

Commit

Permalink
docs: add hint about vite-env.d.ts to README (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpowersjr authored Aug 14, 2024
1 parent 2907155 commit e4a770b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Then SVG files can be imported as React components:
import Logo from "./logo.svg?react";
```

If you are using TypeScript, there is also a declaration helper for better type inference:
If you are using TypeScript, there is also a declaration helper for better type inference. Add the following to `vite-env.d.ts`:

```ts
/// <reference types="vite-plugin-svgr/client" />
Expand Down

0 comments on commit e4a770b

Please sign in to comment.