File tree Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 40
40
"unpkg" : " dist/vue-chartjs.min.js" ,
41
41
"module" : " es/index.js" ,
42
42
"jsnext:main" : " es/index.js" ,
43
+ "typings" : " types/index.d.ts" ,
43
44
"files" : [
44
45
" src" ,
45
46
" dist" ,
46
- " es"
47
+ " es" ,
48
+ " types/*.d.ts"
47
49
],
48
50
"scripts" : {
49
51
"dev" : " node build/dev-server.js" ,
Original file line number Diff line number Diff line change
1
+ import Vue from 'vue'
2
+
3
+ /** vue-chartjs component common definition */
4
+ export declare class BaseChart extends Vue {
5
+ addPlugin ( plugin ?: string [ ] ) : void
6
+ renderChart ( chartData : any , options ?: any ) : void
7
+ }
Original file line number Diff line number Diff line change
1
+ import { BaseChart } from './components'
2
+
3
+ declare module 'vue-chartjs' {
4
+ export function generateChart ( chartId : string , chartType : string ) : any ;
5
+ export class Bar extends BaseChart { }
6
+ export class HorizontalBar extends BaseChart { }
7
+ export class Doughnut extends BaseChart { }
8
+ export class Line extends BaseChart { }
9
+ export class Pie extends BaseChart { }
10
+ export class PolarArea extends BaseChart { }
11
+ export class Radar extends BaseChart { }
12
+ export class Bubble extends BaseChart { }
13
+ export class Scatter extends BaseChart { }
14
+ export const mixins : {
15
+ reactiveData : any
16
+ reactiveProp : any
17
+ }
18
+ }
19
+
You can’t perform that action at this time.
0 commit comments