Add missing fetchpriority attribute to ImgHTMLAttributes (#5433)

This commit is contained in:
Gabriel Pereira Woitechen 2022-11-17 15:20:09 -03:00 committed by GitHub
parent bbb329e65e
commit 936c1e411d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Add missing `fetchpriority` attribute to img, link, script and iframe elements

View file

@ -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;
@ -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;
@ -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;
@ -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;