how can I add to the object in datasets[0]?
interface ChartState {
labels: string[];
datasets: [
{
label: string;
backgroundColor: string[] | string;
hoverBackgroundColor: string[] | string;
data: (string|number)[];
}
];
}
export interface PieCharState extends ChartState {}
what I would like to add:
export interface BarCharState extends ChartState{
datasets[0].barThickness: number;
}
** I know thats not how it spouse to be done (specifing the index etc) but thats the goal. Thanks for the help!