Allow string as a valid value for the target attribute (#4441)
This commit is contained in:
parent
baa2ddd010
commit
ca0c7e8b83
2 changed files with 7 additions and 2 deletions
5
.changeset/nice-mice-teach.md
Normal file
5
.changeset/nice-mice-teach.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Allow arbitrary strings on the target attribute
|
4
packages/astro/astro-jsx.d.ts
vendored
4
packages/astro/astro-jsx.d.ts
vendored
|
@ -548,7 +548,7 @@ declare namespace astroHTML.JSX {
|
||||||
| 'strict-origin-when-cross-origin'
|
| 'strict-origin-when-cross-origin'
|
||||||
| 'unsafe-url';
|
| 'unsafe-url';
|
||||||
|
|
||||||
type HTMLAttributeAnchorTarget = '_self' | '_blank' | '_parent' | '_top';
|
type HTMLAttributeAnchorTarget = '_self' | '_blank' | '_parent' | '_top' | (string & {});
|
||||||
|
|
||||||
interface AnchorHTMLAttributes extends HTMLAttributes {
|
interface AnchorHTMLAttributes extends HTMLAttributes {
|
||||||
download?: string | boolean | undefined | null;
|
download?: string | boolean | undefined | null;
|
||||||
|
@ -756,7 +756,7 @@ declare namespace astroHTML.JSX {
|
||||||
size?: number | string | undefined | null;
|
size?: number | string | undefined | null;
|
||||||
src?: string | undefined | null;
|
src?: string | undefined | null;
|
||||||
step?: number | string | undefined | null;
|
step?: number | string | undefined | null;
|
||||||
type?: HTMLInputTypeAttribute | string | undefined | null;
|
type?: HTMLInputTypeAttribute | undefined | null;
|
||||||
value?: string | string[] | number | undefined | null;
|
value?: string | string[] | number | undefined | null;
|
||||||
width?: number | string | undefined | null;
|
width?: number | string | undefined | null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue