mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Export explicitly the plugin options definition which is augmented (#11309)
This commit is contained in:
parent
60227da669
commit
abbd5a7a70
@ -194,7 +194,7 @@ For example, to provide typings for the [`canvas backgroundColor plugin`](../con
|
||||
import {ChartType, Plugin} from 'chart.js';
|
||||
|
||||
declare module 'chart.js' {
|
||||
interface PluginOptionsByType<TType extends ChartType = ChartType> {
|
||||
interface PluginOptionsByType<TType extends ChartType> {
|
||||
customCanvasBackgroundColor?: {
|
||||
color?: string
|
||||
}
|
||||
|
||||
@ -45,6 +45,10 @@ export {
|
||||
RadialLinearScale,
|
||||
TimeScale,
|
||||
TimeSeriesScale,
|
||||
PluginOptionsByType,
|
||||
ElementOptionsByType,
|
||||
ChartDatasetProperties,
|
||||
UpdateModeEnum,
|
||||
registerables
|
||||
} from './types/index.js';
|
||||
export * from './types/index.js';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user