Skip to content

Commit

Permalink
README: Add info about overriding vite/client (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddie-dunn authored Mar 31, 2023
1 parent ec71ef7 commit a1c224c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ In `tsconfig.json`:
}
```

If you use a custom `.d.ts` file instead of `tsconfig.json` to include Vite Client Types, you will need to modify it accordingly:

```
/// <reference types="vite-plugin-fast-react-svg/types" />
/// <reference types="vite/client" />
```

> N.B: You only need to include Vite Client Types via `tsconfig.json` _or_ a custom `d.ts` file. Both are not needed, so if you have included the types in `tsconfig.json` you can safely delete your `.d.ts` file.
## Usage

```jsx
Expand Down

0 comments on commit a1c224c

Please sign in to comment.