File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const page = `
13
13
14
14
const jsx = (
15
15
< html lang = "en" >
16
- < head hx-a = '' >
16
+ < head hx-a = "A" >
17
17
< title > Hello World</ title >
18
18
</ head >
19
19
< body >
Original file line number Diff line number Diff line change 1
- // @ts -nocheck
2
-
3
1
// @ts -ignore
4
2
const { createElement } = require ( 'typed-html' )
5
3
@@ -9,8 +7,13 @@ globalThis.ElysiaJSX = createElement
9
7
declare function ElysiaJSX ( ...params : any [ ] ) : string
10
8
11
9
declare namespace JSX {
12
- // type Element = string;
13
- interface HtmlTag {
10
+ // @ts -ignore
11
+ type Element = string ;
12
+
13
+ // @ts -ignore
14
+ type BaseHTMLTag = Record < string , unknown >
15
+
16
+ interface HtmlTag extends BaseHTMLTag {
14
17
accesskey ?: string
15
18
class ?: string
16
19
contenteditable ?: string
@@ -482,8 +485,6 @@ declare namespace JSX {
482
485
onunload ?: string
483
486
}
484
487
interface HtmlTag {
485
- // @ts -ignore
486
- [ attributes ?: string ] : string | boolean
487
488
oncontextmenu ?: string
488
489
onkeydown ?: string
489
490
onkeypress ?: string
You can’t perform that action at this time.
0 commit comments