From 47e3673b892bf863d34c8da9ff241849b5f90321 Mon Sep 17 00:00:00 2001 From: Martin Trapp <94928215+martrapp@users.noreply.github.com> Date: Thu, 9 Jan 2025 22:00:07 +0100 Subject: [PATCH] Adds blocking and disabled attributes to the TypeScript definition of the HTML link element --- .changeset/four-kangaroos-develop.md | 5 +++++ packages/astro/astro-jsx.d.ts | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changeset/four-kangaroos-develop.md diff --git a/.changeset/four-kangaroos-develop.md b/.changeset/four-kangaroos-develop.md new file mode 100644 index 000000000000..f7e6bc1a49dc --- /dev/null +++ b/.changeset/four-kangaroos-develop.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Lets TypeScript know about the "blocking" and "disabled" attributes of the `` element. diff --git a/packages/astro/astro-jsx.d.ts b/packages/astro/astro-jsx.d.ts index 39cb40f61bd4..e8b1e5e4738e 100644 --- a/packages/astro/astro-jsx.d.ts +++ b/packages/astro/astro-jsx.d.ts @@ -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;