File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 68
68
"@babel/core" : " ^7.0.0-beta.42" ,
69
69
"@babel/preset-env" : " ^7.0.0-beta.42" ,
70
70
"@babel/preset-stage-2" : " ^7.0.0-beta.42" ,
71
+ "@types/chart.js" : " ^2.7.55" ,
71
72
"babel-loader" : " 8.0.0-beta.0" ,
72
73
"chai" : " ^3.5.0" ,
73
74
"chart.js" : " ^2.8.0" ,
Original file line number Diff line number Diff line change 1
1
import Vue from 'vue'
2
+ import { ChartData , ChartOptions } from 'chart.js' ;
2
3
3
4
/** vue-chartjs component common definition */
4
5
export declare class BaseChart extends Vue {
5
6
addPlugin ( plugin ?: string [ ] ) : void
6
- renderChart ( chartData : any , options ?: any ) : void
7
+ renderChart ( chartData : ChartData , options ?: ChartOptions ) : void
7
8
}
Original file line number Diff line number Diff line change 1
- import Vue from 'vue'
1
+ import Vue from 'vue' ;
2
+ import { ChartData } from 'chart.js' ;
2
3
3
4
export declare class ReactiveDataMixin extends Vue {
4
- chartData : any ;
5
+ chartData : ChartData ;
5
6
}
6
7
7
8
export declare class ReactivePropMixin extends Vue {
8
- readonly chartData : any ;
9
+ readonly chartData : ChartData ;
9
10
}
You can’t perform that action at this time.
0 commit comments