0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00

Adds types for ?url&inline & ?url&no-inline import queries (#12758)

* Add types for Vite inline/no-inline import queries

* Add changeset

* Remove plain `?no-inline` type

* Update changeset
This commit is contained in:
Chris Swithinbank 2024-12-17 12:50:51 +01:00 committed by GitHub
parent 3ff00a6655
commit 483da89cf6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Adds types for `?url&inline` and `?url&no-inline` [import queries](https://vite.dev/guide/assets.html#explicit-inline-handling) added in Vite 6

View file

@ -535,3 +535,13 @@ declare module '*?inline' {
const src: string;
export default src;
}
declare module '*?url&inline' {
const src: string;
export default src;
}
declare module '*?url&no-inline' {
const src: string;
export default src;
}