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,7 +191,7 @@ 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> {
|
||||||
|
Loading…
Reference in New Issue
Block a user