mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-02-20 01:31:20 +01:00
Fix documentation about how to manage own custom plugin for types (#11244)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user