Skip to content

Commit 220da1a

Browse files
authored
Merge pull request #32 from FChapeau/TypeDefinition
Added typescript 2.0 type definitions
2 parents a6cd28d + ed85a05 commit 220da1a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

index.d.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
import * as React from 'React';
3+
4+
interface ChartComponentProps {
5+
data :Object;
6+
height? :number;
7+
legend? :Object;
8+
onElementsClick? :Function;
9+
options? :Object;
10+
redraw? :boolean;
11+
type? :String;
12+
width? :number;
13+
}
14+
15+
export class Doughnut extends React.Component<ChartComponentProps, any>{}
16+
export class Pie extends React.Component<ChartComponentProps, any>{}
17+
export class Line extends React.Component<ChartComponentProps, any>{}
18+
export class Bar extends React.Component<ChartComponentProps, any>{}
19+
export class HorizontalBar extends React.Component<ChartComponentProps, any>{}
20+
export class Radar extends React.Component<ChartComponentProps, any>{}
21+
export class Polar extends React.Component<ChartComponentProps, any>{}

0 commit comments

Comments
 (0)