* Update index.esm.d.ts
tickValue is to my knowledge always a number or a string so this will make it so people wont have to parse it themselfs
* Update core.scale.js
Update typedef according to types update
/**
* @typedef { import("./core.controller").default } Chart
- * @typedef {{value:any, label?:string, major?:boolean, $context?:any}} Tick
+ * @typedef {{value:number | string, label?:string, major?:boolean, $context?:any}} Tick
*/
defaults.set('scale', {
/**
* Returns the string representation of the tick value as it should be displayed on the chart. See callback.
*/
- callback: (tickValue: unknown, index: number, ticks: Tick[]) => string;
+ callback: (tickValue: number | string, index: number, ticks: Tick[]) => string;
/**
* If true, show tick labels.
* @default true