forked from fraserxu/react-chartist
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.d.ts
38 lines (33 loc) · 995 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import * as React from 'react';
import {
IChartOptions,
IResponsiveOptionTuple,
ILineChartOptions,
IBarChartOptions,
IPieChartOptions,
} from 'chartist';
export interface ChartitGraphProps {
type: string;
data: object;
className?: string;
options?: IChartOptions;
listener?: any;
responsiveOptions?: any;
style?: React.CSSProperties;
}
export interface ChartitGraphLineProps extends ChartitGraphProps {
type: 'Line';
options?: ILineChartOptions;
responseOptions?: Array<IResponsiveOptionTuple<ILineChartOptions>>;
}
export interface ChartitGraphPieProps extends ChartitGraphProps {
type: 'Pie';
options?: IPieChartOptions;
responseOptions?: Array<IResponsiveOptionTuple<IPieChartOptions>>;
}
export interface ChartitGraphBarProps extends ChartitGraphProps {
type: 'Bar';
options: IBarChartOptions;
responseOptions?: Array<IResponsiveOptionTuple<IBarChartOptions>>;
}
export default class ChartistGraph extends React.Component<ChartitGraphProps> {}