]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Indicate that `SubTitle` is a plugin in TS types (#9386)
authorEvert Timberg <evert.timberg+github@gmail.com>
Sat, 10 Jul 2021 13:26:37 +0000 (09:26 -0400)
committerGitHub <noreply@github.com>
Sat, 10 Jul 2021 13:26:37 +0000 (16:26 +0300)
* Indicate that `SubTitle` is a plugin in TS types

* Export subtitle plugin options

types/index.esm.d.ts

index 2a0c2bd8f64c1e611f563c3dbd654be701e2a0ea..17c9c02821a6a0fe6314cda8390fe3b436ebbfa6 100644 (file)
@@ -2275,6 +2275,7 @@ export interface LegendOptions<TType extends ChartType> {
   };
 }
 
+export const SubTitle: Plugin;
 export const Title: Plugin;
 
 export interface TitleOptions {
@@ -2685,6 +2686,7 @@ export interface PluginOptionsByType<TType extends ChartType> {
   decimation: DecimationOptions;
   filler: FillerOptions;
   legend: LegendOptions<TType>;
+  subtitle: TitleOptions;
   title: TitleOptions;
   tooltip: TooltipOptions<TType>;
 }