Allow string as a valid value for the target attribute (#4441)

This commit is contained in:
Erika 2022-08-23 11:39:02 -03:00 committed by GitHub
parent baa2ddd010
commit ca0c7e8b83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Allow arbitrary strings on the target attribute

View file

@ -548,7 +548,7 @@ declare namespace astroHTML.JSX {
| 'strict-origin-when-cross-origin'
| 'unsafe-url';
type HTMLAttributeAnchorTarget = '_self' | '_blank' | '_parent' | '_top';
type HTMLAttributeAnchorTarget = '_self' | '_blank' | '_parent' | '_top' | (string & {});
interface AnchorHTMLAttributes extends HTMLAttributes {
download?: string | boolean | undefined | null;
@ -756,7 +756,7 @@ declare namespace astroHTML.JSX {
size?: number | string | undefined | null;
src?: string | undefined | null;
step?: number | string | undefined | null;
type?: HTMLInputTypeAttribute | string | undefined | null;
type?: HTMLInputTypeAttribute | undefined | null;
value?: string | string[] | number | undefined | null;
width?: number | string | undefined | null;
}