mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Fix inconsistency in types for LABEL (#8027)
Co-authored-by: Sergey Khomushin <sergey@placer.io>
This commit is contained in:
parent
c3e861d78c
commit
3f413c7bcf
2
types/core/index.d.ts
vendored
2
types/core/index.d.ts
vendored
@ -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;
|
||||
|
||||
2
types/interfaces.d.ts
vendored
2
types/interfaces.d.ts
vendored
@ -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>;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user