Skip to content

Commit

Permalink
fix(charts): fixed implicit any issues
Browse files Browse the repository at this point in the history
  • Loading branch information
valorkin committed Apr 13, 2016
1 parent 74a10cd commit 14acd8a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 45 deletions.
38 changes: 0 additions & 38 deletions components/charts/charts.d.ts

This file was deleted.

10 changes: 5 additions & 5 deletions components/charts/charts.ts
Expand Up @@ -129,7 +129,7 @@ export class BaseChart implements OnInit, OnDestroy, OnChanges {
this.initFlag = true;
}

ngOnChanges(changes) {
ngOnChanges() {
if (this.initFlag) {
this.refresh();
}
Expand Down Expand Up @@ -169,15 +169,15 @@ export class BaseChart implements OnInit, OnDestroy, OnChanges {
};
}

getRandomInt(min, max) {
getRandomInt(min:number, max:number) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}

rgba(colour, alpha) {
rgba(colour:Array<number>, alpha:number) {
return 'rgba(' + colour.concat(alpha).join(',') + ')';
}

public click(evt) {
public click(evt:any) {
let atEvent = this.chart.getPointsAtEvent || this.chart.getBarsAtEvent || this.chart.getSegmentsAtEvent;
let activePoints = atEvent.call(this.chart, evt);
if (activePoints.length > 0) {
Expand All @@ -186,7 +186,7 @@ export class BaseChart implements OnInit, OnDestroy, OnChanges {
}
}

public hover(evt) {
public hover(evt:any) {
let atEvent = this.chart.getPointsAtEvent || this.chart.getBarsAtEvent || this.chart.getSegmentsAtEvent;
let activePoints = atEvent.call(this.chart, evt);
if (activePoints.length > 0) {
Expand Down
2 changes: 0 additions & 2 deletions components/charts/typings.d.ts

This file was deleted.

0 comments on commit 14acd8a

Please sign in to comment.