Skip to content

Commit 388adf5

Browse files
docs: add client types hint in static assets guide (#11305)
* docs: add client types hint in static assets guide * chore: tweak Co-authored-by: 翠 / green <[email protected]>
1 parent 85fefad commit 388adf5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/guide/assets.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ The behavior is similar to webpack's `file-loader`. The difference is that the i
2828

2929
- Git LFS placeholders are automatically excluded from inlining because they do not contain the content of the file they represent. To get inlining, make sure to download the file contents via Git LFS before building.
3030

31+
- TypeScript, by default, does not recognize static asset imports as valid modules. To fix this, include [`vite/client`](./features#client-types).
32+
3133
### Explicit URL Imports
3234

3335
Assets that are not included in the internal list or in `assetsInclude`, can be explicitly imported as a URL using the `?url` suffix. This is useful, for example, to import [Houdini Paint Worklets](https://houdini.how/usage).

0 commit comments

Comments
 (0)