Skip to content

Commit

Permalink
Adds types for ?url&inline & ?url&no-inline import queries (witha…
Browse files Browse the repository at this point in the history
…stro#12758)

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

* Add changeset

* Remove plain `?no-inline` type

* Update changeset
  • Loading branch information
delucis authored Dec 17, 2024
1 parent 3ff00a6 commit 483da89
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/curly-snakes-shave.md
Original file line number Diff line number Diff line change
@@ -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 changes: 10 additions & 0 deletions packages/astro/client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 483da89

Please sign in to comment.