0
0
mirror of https://github.com/honojs/hono.git synced 2024-12-01 11:51:01 +01:00

feat: define JSX.ElementChildrenAttribute interface (#1139)

* feat: define JSX.ElementChildrenAttribute interface

* chore: denoify
This commit is contained in:
Yudai Nakata 2023-05-29 22:00:27 +09:00 committed by GitHub
parent ba49192f6e
commit c09dbc060b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,9 @@ declare global {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace JSX {
type Element = HtmlEscapedString
interface ElementChildrenAttribute {
children: Child
}
interface IntrinsicElements {
[tagName: string]: Props
}

View File

@ -8,6 +8,9 @@ declare global {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace JSX {
type Element = HtmlEscapedString
interface ElementChildrenAttribute {
children: Child
}
interface IntrinsicElements {
[tagName: string]: Props
}