Skip to content

Commit

Permalink
Fix documentation about how to manage own custom plugin for types (ch…
Browse files Browse the repository at this point in the history
  • Loading branch information
stockiNail committed Apr 20, 2023
1 parent cc1fcb0 commit a3ccf68
Showing 1 changed file with 1 addition 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> {
interface PluginOptionsByType<TType extends ChartType = ChartType> {
customCanvasBackgroundColor?: {
color?: string
}
Expand Down

0 comments on commit a3ccf68

Please sign in to comment.