Fix inconsistency in types for LABEL (#8027)

Co-authored-by: Sergey Khomushin <sergey@placer.io>
This commit is contained in:
xr0master
2020-11-09 16:23:14 +02:00
committed by GitHub
parent c3e861d78c
commit 3f413c7bcf
2 changed files with 2 additions and 2 deletions

View 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;

View 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>;