From abbd5a7a70b86713d37226385c4c63d1df1cc09c Mon Sep 17 00:00:00 2001 From: stockiNail Date: Thu, 25 May 2023 15:12:28 +0200 Subject: [PATCH] Export explicitly the plugin options definition which is augmented (#11309) --- docs/developers/plugins.md | 2 +- src/types.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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'; -- 2.47.3