diff options
-rw-r--r-- | .changeset/sixty-scissors-refuse.md | 6 | ||||
-rw-r--r-- | packages/astro/astro-jsx.d.ts | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/.changeset/sixty-scissors-refuse.md b/.changeset/sixty-scissors-refuse.md new file mode 100644 index 000000000..71452bfae --- /dev/null +++ b/.changeset/sixty-scissors-refuse.md @@ -0,0 +1,6 @@ +--- +'astro': patch +--- + +Fix `border` and `frame` attribute types on `TableHTMLAttributes` interface + diff --git a/packages/astro/astro-jsx.d.ts b/packages/astro/astro-jsx.d.ts index 38e924523..fc38e5c1b 100644 --- a/packages/astro/astro-jsx.d.ts +++ b/packages/astro/astro-jsx.d.ts @@ -936,10 +936,10 @@ declare namespace astroHTML.JSX { interface TableHTMLAttributes extends HTMLAttributes { align?: 'left' | 'center' | 'right' | undefined | null; bgcolor?: string | undefined | null; - border?: number | undefined | null; + border?: string | number | undefined | null; cellpadding?: number | string | undefined | null; cellspacing?: number | string | undefined | null; - frame?: boolean | undefined | null; + frame?: boolean | 'false' | 'true' | undefined | null; rules?: 'none' | 'groups' | 'rows' | 'columns' | 'all' | undefined | null; summary?: string | undefined | null; width?: number | string | undefined | null; |