add number, null and undefined as valid return types (#8891)

This commit is contained in:
Jacco van den Berg 2021-04-13 21:24:59 +02:00 committed by GitHub
parent 95faa4f2a2
commit f76ca010e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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