Skip to content

Commit 9452916

Browse files
committed
First draft of typescript declaration file
1 parent bf04539 commit 9452916

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

index.d.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
import * as React from 'React';
3+
4+
enum ChartType {
5+
doughnut = 'doughnut',
6+
pie = 'pie',
7+
line = 'line',
8+
bar = 'bar',
9+
horizontalBar = 'horizontalBar',
10+
radar = 'radar',
11+
polarArea = 'polarArea'
12+
}
13+
14+
interface ChartComponentProps {
15+
data :Object;
16+
height? :number;
17+
legend? :Object;
18+
onElementsClick? :Function;
19+
options? :Object;
20+
redraw? :boolean;
21+
type? :ChartType;
22+
width? :number;
23+
}
24+
25+
export class Doughnut extends React.Component<ChartComponentProps, any>{}
26+
export class Pie extends React.Component<ChartComponentProps, any>{}
27+
export class Line extends React.Component<ChartComponentProps, any>{}
28+
export class Bar extends React.Component<ChartComponentProps, any>{}
29+
export class HorizontalBar extends React.Component<ChartComponentProps, any>{}
30+
export class Radar extends React.Component<ChartComponentProps, any>{}
31+
export class Polar extends React.Component<ChartComponentProps, any>{}

0 commit comments

Comments
 (0)