mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 04:09:08 +02:00
fix lint in docs (#10611)
This commit is contained in:
parent
9258f250b6
commit
fc8a63e26b
@ -191,13 +191,13 @@ When adding a plugin, `PluginOptionsByType` must contain the declarations for th
|
|||||||
For example, to provide typings for the [`canvas backgroundColor plugin`](../configuration/canvas-background.md), you would add a `.d.ts` containing:
|
For example, to provide typings for the [`canvas backgroundColor plugin`](../configuration/canvas-background.md), you would add a `.d.ts` containing:
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
import { ChartType, Plugin } from 'chart.js'
|
import {ChartType, Plugin} from 'chart.js';
|
||||||
|
|
||||||
declare module 'chart.js' {
|
declare module 'chart.js' {
|
||||||
interface PluginOptionsByType<TType extends ChartType> {
|
interface PluginOptionsByType<TType extends ChartType> {
|
||||||
custom_canvas_background_color?: {
|
custom_canvas_background_color?: {
|
||||||
color?: string
|
color?: string
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user