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:
parent
3ff00a6655
commit
483da89cf6
2 changed files with 15 additions and 0 deletions
5
.changeset/curly-snakes-shave.md
Normal file
5
.changeset/curly-snakes-shave.md
Normal 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
|
10
packages/astro/client.d.ts
vendored
10
packages/astro/client.d.ts
vendored
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue