mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
chart.js added types to generateLabels function (#35630)
* chart.js added types to generateLabels function * It is Chart, not ChartData
This commit is contained in:
parent
3b24fc8aa6
commit
b22b47cf53
3
types/chart.js/index.d.ts
vendored
3
types/chart.js/index.d.ts
vendored
@ -15,6 +15,7 @@
|
||||
// Manuel Heidrich <https://github.com/mahnuh>
|
||||
// Conrad Holtzhausen <https://github.com/Conrad777>
|
||||
// Adrián Caballero <https://github.com/adripanico>
|
||||
// wertzui <https://github.com/wertzui>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@ -270,7 +271,7 @@ declare namespace Chart {
|
||||
fontColor?: ChartColor;
|
||||
fontFamily?: string;
|
||||
padding?: number;
|
||||
generateLabels?(chart: any): any;
|
||||
generateLabels?(chart: Chart): ChartLegendLabelItem[];
|
||||
filter?(legendItem: ChartLegendLabelItem, data: ChartData): any;
|
||||
usePointStyle?: boolean;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user