From: stockiNail Date: Thu, 25 May 2023 13:12:28 +0000 (+0200) Subject: Export explicitly the plugin options definition which is augmented (#11309) X-Git-Tag: v4.3.1~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=abbd5a7a70b86713d37226385c4c63d1df1cc09c;p=thirdparty%2FChart.js.git Export explicitly the plugin options definition which is augmented (#11309) --- diff --git a/docs/developers/plugins.md b/docs/developers/plugins.md index b5e8004aa..60747416b 100644 --- a/docs/developers/plugins.md +++ b/docs/developers/plugins.md @@ -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 { + interface PluginOptionsByType { customCanvasBackgroundColor?: { color?: string } diff --git a/src/types.ts b/src/types.ts index 32e83eb91..ff16b8be5 100644 --- a/src/types.ts +++ b/src/types.ts @@ -45,6 +45,10 @@ export { RadialLinearScale, TimeScale, TimeSeriesScale, + PluginOptionsByType, + ElementOptionsByType, + ChartDatasetProperties, + UpdateModeEnum, registerables } from './types/index.js'; export * from './types/index.js';