Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: add d.ts method to use client types
  • Loading branch information
fi3ework committed May 22, 2021
commit aa27d9e03c453af54cf99cc4cf5377fa6e39a495
6 changes: 6 additions & 0 deletions docs/guide/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ Vite's default types are for its Node.js API. To shim the environment of client
}
```

Also, you can add a `d.ts` declaration file:

```typescript
/// <reference types="vite/client" />
```

This will provide the following type shims:

- Asset imports (e.g. importing an `.svg` file)
Expand Down