mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Add defaults to plugin interface (#10712)
This commit is contained in:
parent
b6322f3ab5
commit
dea889b980
5
types/index.d.ts
vendored
5
types/index.d.ts
vendored
@ -1093,6 +1093,11 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
||||
* @since 3.0.0
|
||||
*/
|
||||
uninstall?(chart: Chart, args: EmptyObject, options: O): void;
|
||||
|
||||
/**
|
||||
* Default options used in the plugin
|
||||
*/
|
||||
defaults?: Partial<O>;
|
||||
}
|
||||
|
||||
export declare type ChartComponentLike = ChartComponent | ChartComponent[] | { [key: string]: ChartComponent } | Plugin | Plugin[];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user