Skip to content

Commit

Permalink
Updated typing
Browse files Browse the repository at this point in the history
  • Loading branch information
TorsteinHonsi committed Mar 16, 2021
1 parent 846ebba commit 32aeaca
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/typescript/highcharts/highcharts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ function test_seriesArea() {
},
labels: {
formatter: function () {
return this.value / 1000 + 'k';
if (typeof this.value === 'number') {
return this.value / 1000 + 'k';
}
return '';
}
}
},
Expand All @@ -59,7 +62,7 @@ function test_seriesArea() {
},
plotOptions: {
area: {
threshold: null,
threshold: null as any,
pointStart: 1940,
marker: {
enabled: false,
Expand Down Expand Up @@ -224,8 +227,7 @@ function test_seriesColumn() {
plotOptions: {
column: {
pointPadding: 0.2,
borderWidth: 0,
dashStyle: 'Dash'
borderWidth: 0
}
},
series: [{
Expand Down

0 comments on commit 32aeaca

Please sign in to comment.