Remove type attribute from dataset specific type specification (#10869)

This commit is contained in:
Jacco van den Berg
2022-11-13 18:36:25 +01:00
committed by GitHub
parent 63993b03b1
commit 53b79673eb
2 changed files with 2 additions and 3 deletions

View File

@@ -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
View File

@@ -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>[];