From: Jacco van den Berg Date: Tue, 27 Sep 2022 11:39:48 +0000 (+0200) Subject: Add defaults to plugin interface (#10712) X-Git-Tag: v4.0.0~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dea889b980a05a9fff9b9f61a552f4f7221d23f5;p=thirdparty%2FChart.js.git Add defaults to plugin interface (#10712) --- diff --git a/types/index.d.ts b/types/index.d.ts index 4304319fd..83cc9c054 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1093,6 +1093,11 @@ export interface Plugin exte * @since 3.0.0 */ uninstall?(chart: Chart, args: EmptyObject, options: O): void; + + /** + * Default options used in the plugin + */ + defaults?: Partial; } export declare type ChartComponentLike = ChartComponent | ChartComponent[] | { [key: string]: ChartComponent } | Plugin | Plugin[];