Skip to content

Commit

Permalink
Export explicitly the plugin options definition which is augmented (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
stockiNail authored May 25, 2023
1 parent 60227da commit abbd5a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/developers/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 4 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ export {
RadialLinearScale,
TimeScale,
TimeSeriesScale,
PluginOptionsByType,
ElementOptionsByType,
ChartDatasetProperties,
UpdateModeEnum,
registerables
} from './types/index.js';
export * from './types/index.js';

0 comments on commit abbd5a7

Please sign in to comment.