forked from anomalyco/opentui
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjsx-namespace.d.ts
More file actions
48 lines (43 loc) · 1001 Bytes
/
jsx-namespace.d.ts
File metadata and controls
48 lines (43 loc) · 1001 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
46
47
48
import type * as React from "react"
import type {
AsciiFontProps,
BoxProps,
ExtendedIntrinsicElements,
InputProps,
LineBreakProps,
OpenTUIComponents,
ScrollBoxProps,
SelectProps,
SpanProps,
TabSelectProps,
TextProps,
} from "./src/types/components"
export namespace JSX {
type Element = React.ReactNode
interface ElementClass extends React.ComponentClass<any> {
render(): React.ReactNode
}
interface ElementAttributesProperty {
props: {}
}
interface ElementChildrenAttribute {
children: {}
}
interface IntrinsicElements extends React.JSX.IntrinsicElements, ExtendedIntrinsicElements<OpenTUIComponents> {
box: BoxProps
text: TextProps
span: SpanProps
input: InputProps
select: SelectProps
scrollbox: ScrollBoxProps
"ascii-font": AsciiFontProps
"tab-select": TabSelectProps
// Text modifiers
b: SpanProps
i: SpanProps
u: SpanProps
strong: SpanProps
em: SpanProps
br: LineBreakProps
}
}