0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-20 22:12:38 -05:00

Adds blocking and disabled attributes to the TypeScript definition of the HTML link element (#12955)

This commit is contained in:
Martin Trapp 2025-01-10 06:04:33 +01:00 committed by GitHub
parent 51ab7b5722
commit db447f2816
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Lets TypeScript know about the "blocking" and "disabled" attributes of the `<link>` element.

View file

@ -837,10 +837,12 @@ declare namespace astroHTML.JSX {
interface LinkHTMLAttributes extends HTMLAttributes {
as?: string | undefined | null;
blocking?: 'render' | undefined | null;
crossorigin?: boolean | string | undefined | null;
disabled?: boolean | undefined | null;
fetchpriority?: 'auto' | 'high' | 'low' | 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;