UNPKG

816 BTypeScriptView Raw
1import {
2 Ref,
3 ElementType,
4 Props,
5 GroupProps,
6 RectProps,
7 CircleProps,
8 LineProps,
9 PolygonProps,
10 PolylineProps,
11 ArcProps,
12 SectorProps,
13 TextProps,
14 CustomProps,
15 MarkerProps,
16 ImageProps,
17} from '../types';
18
19export namespace JSX {
20 export interface Element {
21 key: string;
22 ref?: Ref;
23 type: ElementType;
24 props: Props;
25 [key: string]: any;
26 }
27
28 export interface ElementClass {
29 refs: {};
30 props: Props;
31 render(): Element | null;
32 }
33
34 export interface IntrinsicElements {
35 group: GroupProps;
36 rect: RectProps;
37 circle: CircleProps;
38 line: LineProps;
39 polygon: PolygonProps;
40 polyline: PolylineProps;
41 arc: ArcProps;
42 sector: SectorProps;
43 text: TextProps;
44 custom: CustomProps;
45 marker: MarkerProps;
46 image: ImageProps;
47 }
48}