Skip to content

Commit

Permalink
Add missing fetchpriority attribute to ImgHTMLAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
wtchnm committed Nov 17, 2022
1 parent bbb329e commit b5be36e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/clever-queens-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Add missing `fetchpriority` attribute to img, link, script and iframe elements
4 changes: 4 additions & 0 deletions packages/astro/astro-jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,7 @@ declare namespace astroHTML.JSX {
allow?: string | undefined | null;
allowfullscreen?: boolean | string | undefined | null;
allowtransparency?: boolean | string | undefined | null;
fetchpriority?: 'auto' | 'high' | 'low' | undefined | null;
/** @deprecated */
frameborder?: number | string | undefined | null;
height?: number | string | undefined | null;
Expand All @@ -686,6 +687,7 @@ declare namespace astroHTML.JSX {
alt?: string | undefined | null;
crossorigin?: 'anonymous' | 'use-credentials' | '' | undefined | null;
decoding?: 'async' | 'auto' | 'sync' | undefined | null;
fetchpriority?: 'auto' | 'high' | 'low' | undefined | null;
height?: number | string | undefined | null;
loading?: 'eager' | 'lazy' | undefined | null;
referrerpolicy?: HTMLAttributeReferrerPolicy | undefined | null;
Expand Down Expand Up @@ -784,6 +786,7 @@ declare namespace astroHTML.JSX {
crossorigin?: boolean | string | undefined | null;
href?: string | URL | undefined | null;
hreflang?: string | undefined | null;
fetchpriority?: 'auto' | 'high' | 'low' | undefined | null;
integrity?: string | undefined | null;
media?: string | undefined | null;
imageSrcSet?: string | undefined | null;
Expand Down Expand Up @@ -893,6 +896,7 @@ declare namespace astroHTML.JSX {
charset?: string | undefined | null;
crossorigin?: string | undefined | null;
defer?: boolean | string | undefined | null;
fetchpriority?: 'auto' | 'high' | 'low' | undefined | null;
integrity?: string | undefined | null;
nomodule?: boolean | string | undefined | null;
nonce?: string | undefined | null;
Expand Down

0 comments on commit b5be36e

Please sign in to comment.