Skip to content

Commit abbd5a7

Browse files
authored
Export explicitly the plugin options definition which is augmented (#11309)
1 parent 60227da commit abbd5a7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/developers/plugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ For example, to provide typings for the [`canvas backgroundColor plugin`](../con
194194
import {ChartType, Plugin} from 'chart.js';
195195

196196
declare module 'chart.js' {
197-
interface PluginOptionsByType<TType extends ChartType = ChartType> {
197+
interface PluginOptionsByType<TType extends ChartType> {
198198
customCanvasBackgroundColor?: {
199199
color?: string
200200
}

src/types.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ export {
4545
RadialLinearScale,
4646
TimeScale,
4747
TimeSeriesScale,
48+
PluginOptionsByType,
49+
ElementOptionsByType,
50+
ChartDatasetProperties,
51+
UpdateModeEnum,
4852
registerables
4953
} from './types/index.js';
5054
export * from './types/index.js';

0 commit comments

Comments
 (0)