Skip to content

Commit a3ccf68

Browse files
authored
Fix documentation about how to manage own custom plugin for types (#11244)
1 parent cc1fcb0 commit a3ccf68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/developers/plugins.md

+1-1
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> {
197+
interface PluginOptionsByType<TType extends ChartType = ChartType> {
198198
customCanvasBackgroundColor?: {
199199
color?: string
200200
}

0 commit comments

Comments
 (0)