mirror of
https://github.com/withastro/astro.git
synced 2025-01-27 22:19:04 -05:00
Adds blocking and disabled attributes to the TypeScript definition of the HTML link element (#12955)
This commit is contained in:
parent
51ab7b5722
commit
db447f2816
2 changed files with 8 additions and 1 deletions
5
.changeset/four-kangaroos-develop.md
Normal file
5
.changeset/four-kangaroos-develop.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Lets TypeScript know about the "blocking" and "disabled" attributes of the `<link>` element.
|
4
packages/astro/astro-jsx.d.ts
vendored
4
packages/astro/astro-jsx.d.ts
vendored
|
@ -837,10 +837,12 @@ declare namespace astroHTML.JSX {
|
||||||
|
|
||||||
interface LinkHTMLAttributes extends HTMLAttributes {
|
interface LinkHTMLAttributes extends HTMLAttributes {
|
||||||
as?: string | undefined | null;
|
as?: string | undefined | null;
|
||||||
|
blocking?: 'render' | undefined | null;
|
||||||
crossorigin?: boolean | string | undefined | null;
|
crossorigin?: boolean | string | undefined | null;
|
||||||
|
disabled?: boolean | undefined | null;
|
||||||
|
fetchpriority?: 'auto' | 'high' | 'low' | undefined | null;
|
||||||
href?: string | URL | undefined | null;
|
href?: string | URL | undefined | null;
|
||||||
hreflang?: string | undefined | null;
|
hreflang?: string | undefined | null;
|
||||||
fetchpriority?: 'auto' | 'high' | 'low' | undefined | null;
|
|
||||||
integrity?: string | undefined | null;
|
integrity?: string | undefined | null;
|
||||||
media?: string | undefined | null;
|
media?: string | undefined | null;
|
||||||
imagesrcset?: string | undefined | null;
|
imagesrcset?: string | undefined | null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue