mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-11 08:04:30 +00:00
Added instantiated version of chart definition and cleaned up tests.
This commit is contained in:
@@ -29,7 +29,7 @@ class AppController {
|
||||
loading: true
|
||||
};
|
||||
constructor($timeout: ng.ITimeoutService) {
|
||||
let vm = this;
|
||||
var vm = this;
|
||||
$timeout(function() {
|
||||
//Some async action
|
||||
vm.chartConfig.loading = false;
|
||||
|
||||
8
highcharts-ng/highcharts-ng.d.ts
vendored
8
highcharts-ng/highcharts-ng.d.ts
vendored
@@ -33,5 +33,11 @@ interface HighChartsNGConfig {
|
||||
height?: number;
|
||||
};
|
||||
//function (optional) - setup some logic for the chart
|
||||
func?: (chart) => void;
|
||||
func?: (chart: HighchartsChartObject) => void;
|
||||
}
|
||||
|
||||
//Instantiated Chart
|
||||
interface HighChartsNGChart extends HighChartsNGConfig {
|
||||
//This is a simple way to access all the Highcharts API that is not currently managed by this directive.
|
||||
getHighcharts(): HighchartsChartObject;
|
||||
}
|
||||
Reference in New Issue
Block a user