Skip to content

Commit

Permalink
Adds blocking and disabled attributes to the TypeScript definition of…
Browse files Browse the repository at this point in the history
… the HTML link element (#12955)
  • Loading branch information
martrapp authored Jan 10, 2025
1 parent 51ab7b5 commit db447f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/four-kangaroos-develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Lets TypeScript know about the "blocking" and "disabled" attributes of the `<link>` element.
4 changes: 3 additions & 1 deletion packages/astro/astro-jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit db447f2

Please sign in to comment.