]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
fix lint in docs (#10611)
authorJacco van den Berg <jaccoberg2281@gmail.com>
Mon, 22 Aug 2022 19:00:26 +0000 (21:00 +0200)
committerGitHub <noreply@github.com>
Mon, 22 Aug 2022 19:00:26 +0000 (21:00 +0200)
docs/developers/plugins.md

index 2f7c88b6664bf6da742149431d5274237546b757..bc4cbeb9e73bc032da6378c1af0250717a4c8038 100644 (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:
 
 ```ts
-import { ChartType, Plugin } from 'chart.js'
+import {ChartType, Plugin} from 'chart.js';
 
 declare module 'chart.js' {
-    interface PluginOptionsByType<TType extends ChartType> {
-        custom_canvas_background_color?: {
-            color?: string
-        }
+  interface PluginOptionsByType<TType extends ChartType> {
+    custom_canvas_background_color?: {
+      color?: string
     }
+  }
 }
 ```