Skip to content

Commit

Permalink
Remove test to check if datasetIndex has been set in generateLabels f…
Browse files Browse the repository at this point in the history
…unction for legend
  • Loading branch information
LeeLenaleee committed Jun 22, 2022
1 parent 8397f85 commit 6f00c7e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions types/tests/plugins/defaults.ts
Expand Up @@ -9,10 +9,3 @@ defaults.plugins.legend.labels.generateLabels = function(chart) {
text: 'test'
}];
};

// @ts-expect-error Type '{ text: string; }[]' is not assignable to type 'LegendItem[]'.
defaults.plugins.legend.labels.generateLabels = function(chart) {
return [{
text: 'test'
}];
};

0 comments on commit 6f00c7e

Please sign in to comment.