mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Remove type attribute from dataset specific type specification (#10869)
This commit is contained in:
parent
63993b03b1
commit
53b79673eb
@ -1,4 +1,4 @@
|
||||
import type {Chart, ChartDataset} from '../types';
|
||||
import type {Chart, ChartConfiguration, ChartDataset} from '../types';
|
||||
|
||||
export interface ColorsPluginOptions {
|
||||
enabled?: boolean;
|
||||
@ -94,7 +94,7 @@ export default {
|
||||
type,
|
||||
options: {elements},
|
||||
data: {datasets}
|
||||
} = chart.config;
|
||||
} = chart.config as ChartConfiguration;
|
||||
|
||||
if (containsColorsDefinitions(datasets) || elements && containsColorsDefinitions(elements)) {
|
||||
return;
|
||||
|
||||
1
types/index.d.ts
vendored
1
types/index.d.ts
vendored
@ -3651,7 +3651,6 @@ export interface ChartConfigurationCustomTypesPerDataset<
|
||||
TData = DefaultDataPoint<TType>,
|
||||
TLabel = unknown
|
||||
> {
|
||||
type: TType;
|
||||
data: ChartDataCustomTypesPerDataset<TType, TData, TLabel>;
|
||||
options?: ChartOptions<TType>;
|
||||
plugins?: Plugin<TType>[];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user