Skip to content

Commit c3c56b2

Browse files
committed
🎉 feat: custom element
1 parent b677567 commit c3c56b2

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 0.6.2 - 8 Sep 2023
2+
Improvement:
3+
- Add support for custom element
4+
- Add support for custom attribute
5+
16
# 0.6.1 - 8 Sep 2023
27
Improvement:
38
- Add support for JSX

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elysiajs/html",
3-
"version": "0.6.1",
3+
"version": "0.6.2",
44
"description": "Plugin for Elysia that add support for returning html",
55
"author": {
66
"name": "saltyAom",

src/declaration.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ declare namespace JSX {
343343
}
344344

345345
interface IntrinsicElements {
346+
[customElement: string]: HtmlTag
346347
a: HtmlAnchorTag
347348
abbr: HtmlTag
348349
address: HtmlTag
@@ -479,6 +480,7 @@ declare namespace JSX {
479480
onunload?: string
480481
}
481482
interface HtmlTag {
483+
[attributes: string]: string | boolean
482484
oncontextmenu?: string
483485
onkeydown?: string
484486
onkeypress?: string

0 commit comments

Comments
 (0)