]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix inconsistency in types for LABEL (#8027)
authorxr0master <xr0master@gmail.com>
Mon, 9 Nov 2020 14:23:14 +0000 (16:23 +0200)
committerGitHub <noreply@github.com>
Mon, 9 Nov 2020 14:23:14 +0000 (16:23 +0200)
Co-authored-by: Sergey Khomushin <sergey@placer.io>
types/core/index.d.ts
types/interfaces.d.ts

index a1e036c5df263e932057984cfa7b458538fe6af8..e71e7375973d33732cd8c1ec1e6f586dabccbe7d 100644 (file)
@@ -172,7 +172,7 @@ export interface ActiveElement extends ActiveDataPoint {
 export declare class Chart<
        TYPE extends ChartType = ChartType,
        DATA extends unknown[] = DefaultDataPoint<TYPE>,
-       LABEL = string
+       LABEL = unknown
        > {
        readonly platform: BasePlatform;
        readonly id: string;
index 7d2ff4dbd201bdf9373fca9591d153f9710b74e3..81e33f05b3017833b697b3a81941dd98217490a8 100644 (file)
@@ -175,7 +175,7 @@ export interface ChartData<
 export interface ChartConfiguration<
   TYPE extends ChartType = ChartType,
   DATA extends unknown[] = DefaultDataPoint<TYPE>,
-  LABEL = string
+  LABEL = unknown
 > {
   type: TYPE;
   data: ChartData<TYPE, DATA, LABEL>;