chore(package): add type definitions for jQuery and its plugins (#400)

This commit is contained in:
AlbertXingZhang 2016-12-20 00:41:52 -08:00 committed by Dmitry Nehaychik
parent 1227ad368c
commit 02a1cdbe9e
4 changed files with 11 additions and 3 deletions

View file

@ -68,6 +68,9 @@
"@types/uglify-js": "^2.0.27",
"@types/webpack": "2.0.0",
"@types/lodash": "0.0.28",
"@types/jquery ": "^2.0.33",
"@types/fullcalendar": "^2.7.35",
"@types/jquery.slimscroll": "^1.3.30",
"gh-pages": "^0.11.0",
"parse5": "^2.2.2",
"rimraf": "~2.5.4",

View file

@ -24,7 +24,7 @@ export class TrafficChart {
}
private _loadDoughnutCharts() {
let el = jQuery('.chart-area').get(0);
let el = jQuery('.chart-area').get(0) as HTMLCanvasElement;
new Chart(el.getContext('2d')).Doughnut(this.doughnutData, {
segmentShowStroke: false,
percentageInnerCutout : 64,

View file

@ -32,7 +32,10 @@
*
*/
declare var jQuery:any;
interface JQuery {
easyPieChart;
}
declare var GoogleMapsLoader:any;
declare var L:any;
declare var AmCharts:any;

View file

@ -21,7 +21,9 @@
"node",
"source-map",
"uglify-js",
"webpack"
"webpack",
"fullcalendar",
"jquery.slimscroll"
]
},
"exclude": [