forked from anomalyco/opentui
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjsx-runtime.d.ts
More file actions
45 lines (40 loc) · 965 Bytes
/
jsx-runtime.d.ts
File metadata and controls
45 lines (40 loc) · 965 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import { Renderable } from "@opentui/core"
import type {
AsciiFontProps,
BoxProps,
CodeProps,
ExtendedIntrinsicElements,
InputProps,
OpenTUIComponents,
ScrollBoxProps,
SelectProps,
SpanProps,
TabSelectProps,
TextProps,
} from "./src/types/elements"
import type { DomNode } from "./dist"
declare namespace JSX {
// Replace Node with Renderable
type Element = DomNode | ArrayElement | string | number | boolean | null | undefined
type ArrayElement = Array<Element>
interface IntrinsicElements extends ExtendedIntrinsicElements<OpenTUIComponents> {
box: BoxProps
text: TextProps
span: SpanProps
input: InputProps
select: SelectProps
ascii_font: AsciiFontProps
tab_select: TabSelectProps
scrollbox: ScrollBoxProps
code: CodeProps
b: SpanProps
strong: SpanProps
i: SpanProps
em: SpanProps
u: SpanProps
br: {}
}
interface ElementChildrenAttribute {
children: {}
}
}