diff options
author | 2025-01-10 06:04:33 +0100 | |
---|---|---|
committer | 2025-01-10 06:04:33 +0100 | |
commit | db447f2816836b635355cc2b0a73678facd155a5 (patch) | |
tree | 89063d781d93114816e6b38855e8895f59857cda | |
parent | 51ab7b5722acecce722fb404ca6bc152a109c9e5 (diff) | |
download | astro-db447f2816836b635355cc2b0a73678facd155a5.tar.gz astro-db447f2816836b635355cc2b0a73678facd155a5.tar.zst astro-db447f2816836b635355cc2b0a73678facd155a5.zip |
Adds blocking and disabled attributes to the TypeScript definition of the HTML link element (#12955)
-rw-r--r-- | .changeset/four-kangaroos-develop.md | 5 | ||||
-rw-r--r-- | packages/astro/astro-jsx.d.ts | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/.changeset/four-kangaroos-develop.md b/.changeset/four-kangaroos-develop.md new file mode 100644 index 000000000..f7e6bc1a4 --- /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 `<link>` element. diff --git a/packages/astro/astro-jsx.d.ts b/packages/astro/astro-jsx.d.ts index 39cb40f61..e8b1e5e47 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; |