From db447f2816836b635355cc2b0a73678facd155a5 Mon Sep 17 00:00:00 2001 From: Martin Trapp <94928215+martrapp@users.noreply.github.com> Date: Fri, 10 Jan 2025 06:04:33 +0100 Subject: [PATCH] Adds blocking and disabled attributes to the TypeScript definition of the HTML link element (#12955) --- .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 0000000000..f7e6bc1a49 --- /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 39cb40f61b..e8b1e5e473 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;