mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-31 11:07:32 +08:00
Merge pull request #21842 from LeoTindall/master
[chart.js] Allow plugins options to be of any type.
This commit is contained in:
@@ -44,7 +44,8 @@ const chart: Chart = new Chart(new CanvasRenderingContext2D(), {
|
||||
zeroLineBorderDashOffset: 2
|
||||
}
|
||||
}]
|
||||
}
|
||||
},
|
||||
plugins: { arbitraryPlugin: {option: "value"} }
|
||||
}
|
||||
});
|
||||
chart.update();
|
||||
|
||||
2
types/chart.js/index.d.ts
vendored
2
types/chart.js/index.d.ts
vendored
@@ -176,6 +176,8 @@ declare namespace Chart {
|
||||
cutoutPercentage?: number;
|
||||
circumference?: number;
|
||||
rotation?: number;
|
||||
// Plugins can require any options
|
||||
plugins?: any;
|
||||
}
|
||||
|
||||
interface ChartFontOptions {
|
||||
|
||||
Reference in New Issue
Block a user