Skip to content

Commit

Permalink
Merge pull request #32 from FChapeau/TypeDefinition
Browse files Browse the repository at this point in the history
Added typescript 2.0 type definitions
  • Loading branch information
gor181 authored Sep 26, 2016
2 parents a6cd28d + ed85a05 commit 220da1a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions index.d.ts
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>{}

0 comments on commit 220da1a

Please sign in to comment.