mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-07 09:49:07 +00:00
Update the library react-chartjs-2 that depends on chart.js
This commit is contained in:
Vendored
+2
-1
@@ -1,6 +1,7 @@
|
||||
// Type definitions for react-chartjs-2 2.0
|
||||
// Project: https://github.com/gor181/react-chartjs-2
|
||||
// Definitions by: Alexandre Paré <https://github.com/apare>
|
||||
// Fabien Lavocat <https://github.com/FabienLavocat>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
@@ -25,7 +26,7 @@ export interface ChartComponentProps {
|
||||
}
|
||||
|
||||
export interface LinearComponentProps extends ChartComponentProps {
|
||||
data: ChartData<chartjs.LinearChartData>;
|
||||
data: ChartData<chartjs.ChartData>;
|
||||
}
|
||||
|
||||
export default class ChartComponent<P extends ChartComponentProps> extends React.Component<P, {}> {
|
||||
|
||||
@@ -14,7 +14,7 @@ const data = {
|
||||
'#36A2EB',
|
||||
'#FFCE56'
|
||||
],
|
||||
hoverBackgroundColor: [
|
||||
pointHoverBackgroundColor: [
|
||||
'#FF6384',
|
||||
'#36A2EB',
|
||||
'#FFCE56'
|
||||
|
||||
Reference in New Issue
Block a user