Export explicitly the plugin options definition which is augmented (#11309)

This commit is contained in:
stockiNail 2023-05-25 15:12:28 +02:00 committed by GitHub
parent 60227da669
commit abbd5a7a70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -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
}

View File

@ -45,6 +45,10 @@ export {
RadialLinearScale,
TimeScale,
TimeSeriesScale,
PluginOptionsByType,
ElementOptionsByType,
ChartDatasetProperties,
UpdateModeEnum,
registerables
} from './types/index.js';
export * from './types/index.js';