summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/nice-mice-teach.md5
-rw-r--r--packages/astro/astro-jsx.d.ts4
2 files changed, 7 insertions, 2 deletions
diff --git a/.changeset/nice-mice-teach.md b/.changeset/nice-mice-teach.md
new file mode 100644
index 000000000..1d0d916a9
--- /dev/null
+++ b/.changeset/nice-mice-teach.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Allow arbitrary strings on the target attribute
diff --git a/packages/astro/astro-jsx.d.ts b/packages/astro/astro-jsx.d.ts
index 226391a82..bdf6b6aa2 100644
--- a/packages/astro/astro-jsx.d.ts
+++ b/packages/astro/astro-jsx.d.ts
@@ -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;
}