-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from FChapeau/TypeDefinition
Added typescript 2.0 type definitions
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
import * as React from 'React'; | ||
|
||
interface ChartComponentProps { | ||
data :Object; | ||
height? :number; | ||
legend? :Object; | ||
onElementsClick? :Function; | ||
options? :Object; | ||
redraw? :boolean; | ||
type? :String; | ||
width? :number; | ||
} | ||
|
||
export class Doughnut extends React.Component<ChartComponentProps, any>{} | ||
export class Pie extends React.Component<ChartComponentProps, any>{} | ||
export class Line extends React.Component<ChartComponentProps, any>{} | ||
export class Bar extends React.Component<ChartComponentProps, any>{} | ||
export class HorizontalBar extends React.Component<ChartComponentProps, any>{} | ||
export class Radar extends React.Component<ChartComponentProps, any>{} | ||
export class Polar extends React.Component<ChartComponentProps, any>{} |