Fix documentation about how to manage own custom plugin for types (#11244)

This commit is contained in:
stockiNail 2023-04-20 17:50:08 +02:00 committed by GitHub
parent cc1fcb0e93
commit a3ccf6854b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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> {
interface PluginOptionsByType<TType extends ChartType = ChartType> {
customCanvasBackgroundColor?: {
color?: string
}