]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix Invalid Typescript Types (#7748)
authorSamuel Gratzl <sam@sgratzl.com>
Wed, 2 Sep 2020 12:10:19 +0000 (14:10 +0200)
committerGitHub <noreply@github.com>
Wed, 2 Sep 2020 12:10:19 +0000 (08:10 -0400)
types/core/index.d.ts

index 820d34e46eca8b24b23b7a938c7442972e7dd00c..4b106e67100e8b53acb0a816bd9672e710e7bffd 100644 (file)
@@ -346,7 +346,7 @@ export class DatasetController<E extends Element = Element, DSE extends Element
    * Utility for checking if the options are shared and should be animated separately.
    * @protected
    */
-  protected getSharedOptions(options: any): undefined | { any };
+  protected getSharedOptions(options: any): undefined | any;
   /**
    * Utility for determining if `options` should be included in the updated properties
    * @protected
@@ -823,7 +823,7 @@ export interface IPlugin<O = {}> {
   destroy?(chart: Chart, options: O): void;
 }
 
-declare type IChartComponentLike = IChartComponent | IChartComponent[] | { [key: string]: IChartComponent };
+export declare type IChartComponentLike = IChartComponent | IChartComponent[] | { [key: string]: IChartComponent };
 
 /**
  * Please use the module's default export which provides a singleton instance