From d13125e508f4e14b7cc78758c982667aa3611b27 Mon Sep 17 00:00:00 2001 From: Bence Fekete Date: Thu, 16 Nov 2023 00:05:47 +0000 Subject: [PATCH] Add HTMLMTdElement interface --- src/jsx.d.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/jsx.d.ts b/src/jsx.d.ts index 4cce27ee4f..d231b31fcb 100644 --- a/src/jsx.d.ts +++ b/src/jsx.d.ts @@ -2772,6 +2772,29 @@ export namespace JSXInternal { width?: string | undefined | SignalLike; } + export interface HTMLMTdElement extends MathMLElement { + columnspan?: number | undefined | SignalLike; + rowspan?: number | undefined | SignalLike; + /** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtd#columnalign */ + columnalign?: + | 'center' + | 'left' + | 'right' + | undefined + | SignalLike<'center' | 'left' | 'right' | undefined>; + /** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtd#rowalign */ + rowalign?: + | 'axis' + | 'baseline' + | 'bottom' + | 'center' + | 'top' + | undefined + | SignalLike< + 'axis' | 'baseline' | 'bottom' | 'center' | 'top' | undefined + >; + } + export interface IntrinsicElements { // HTML a: HTMLAttributes; @@ -2980,5 +3003,6 @@ export namespace JSXInternal { msubsup: MathMLAttributes; msup: MathMLAttributes; mtable: MathMLAttributes; + mtd: MathMLAttributes; } }