mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
add number, null and undefined as valid return types (#8891)
This commit is contained in:
parent
95faa4f2a2
commit
f76ca010e8
2
types/index.esm.d.ts
vendored
2
types/index.esm.d.ts
vendored
@ -2696,7 +2696,7 @@ export interface TickOptions {
|
||||
/**
|
||||
* Returns the string representation of the tick value as it should be displayed on the chart. See callback.
|
||||
*/
|
||||
callback: (tickValue: number | string, index: number, ticks: Tick[]) => string;
|
||||
callback: (tickValue: number | string, index: number, ticks: Tick[]) => string | number | null | undefined;
|
||||
/**
|
||||
* If true, show tick labels.
|
||||
* @default true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user