Skip to content

Commit

Permalink
Allow string as a valid value for the target attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed Aug 23, 2022
1 parent bc5cb85 commit 5b6f4d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-mice-teach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Allow arbitrary strings on the target attribute
4 changes: 2 additions & 2 deletions packages/astro/astro-jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 5b6f4d9

Please sign in to comment.