mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Fix documentation about how to manage own custom plugin for types (#11244)
This commit is contained in:
parent
cc1fcb0e93
commit
a3ccf6854b
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user