feat: update type for line chart series (#175)

* feat: update type for line chart series

* fix: another place
This commit is contained in:
Krist Wongsuphasawat 2019-08-13 15:43:22 -07:00 committed by Yongjie Zhao
parent ea70378e94
commit bb501adda5

View File

@ -30,9 +30,7 @@ export interface TooltipProps {
allSeries: Series[]; allSeries: Series[];
datum: SeriesValue; datum: SeriesValue;
series: { series: {
[key: string]: { [key: string]: SeriesValue;
y: number;
};
}; };
theme: typeof chartTheme; theme: typeof chartTheme;
} }
@ -215,9 +213,7 @@ export default class LineChart extends PureComponent<Props> {
}: { }: {
datum: SeriesValue; datum: SeriesValue;
series: { series: {
[key: string]: { [key: string]: SeriesValue;
y: number;
};
}; };
}) => ( }) => (
<TooltipRenderer <TooltipRenderer