Skip to content
Myr

feat: define JSX.ElementChildrenAttribute interface (#1139)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* feat: define JSX.ElementChildrenAttribute interface * chore: denoify

authored by Yudai Nakata · committed by GitHub · parent ba49192 · Browse files · 2 files+6 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+6 added−0 removed

  • other:+6 added−0 removed

2 files+6 added−0 removed

modified:deno_dist/middleware/jsx/index.ts+3 added
6 unmodified lines
7declare global {8 // eslint-disable-next-line @typescript-eslint/no-namespace9 namespace JSX {10 type Element = HtmlEscapedString11 interface ElementChildrenAttribute {12 children: Child13 }14 interface IntrinsicElements {15 [tagName: string]: Props16 }17 }
215 unmodified lines
modified:src/middleware/jsx/index.ts+3 added
6 unmodified lines
7declare global {8 // eslint-disable-next-line @typescript-eslint/no-namespace9 namespace JSX {10 type Element = HtmlEscapedString11 interface ElementChildrenAttribute {12 children: Child13 }14 interface IntrinsicElements {15 [tagName: string]: Props16 }17 }
215 unmodified lines