Fix Invalid Typescript Types (#7748)

This commit is contained in:
Samuel Gratzl 2020-09-02 14:10:19 +02:00 committed by GitHub
parent effe988bbf
commit 4a827db5ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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