]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Export explicitly the plugin options definition which is augmented (#11309)
authorstockiNail <stocki.nail@gmail.com>
Thu, 25 May 2023 13:12:28 +0000 (15:12 +0200)
committerGitHub <noreply@github.com>
Thu, 25 May 2023 13:12:28 +0000 (09:12 -0400)
docs/developers/plugins.md
src/types.ts

index b5e8004aa5bc0c28b8a0597c6ef72d5a029d1ba3..60747416b919f7b4c2ac1b0ef405735c3d10f591 100644 (file)
@@ -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 = ChartType> {
+  interface PluginOptionsByType<TType extends ChartType> {
     customCanvasBackgroundColor?: {
       color?: string
     }
index 32e83eb9189560990baaf477a4c0756346ebdc81..ff16b8be54616064836bcedeaa49e9d2bbf8157e 100644 (file)
@@ -45,6 +45,10 @@ export {
   RadialLinearScale,
   TimeScale,
   TimeSeriesScale,
+  PluginOptionsByType,
+  ElementOptionsByType,
+  ChartDatasetProperties,
+  UpdateModeEnum,
   registerables
 } from './types/index.js';
 export * from './types/index.js';