fix lint in docs (#10611)

This commit is contained in:
Jacco van den Berg 2022-08-22 21:00:26 +02:00 committed by GitHub
parent 9258f250b6
commit fc8a63e26b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}
} }
}
} }
``` ```