From: Jacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com> Date: Tue, 13 Apr 2021 19:24:59 +0000 (+0200) Subject: add number, null and undefined as valid return types (#8891) X-Git-Tag: v3.1.1~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f76ca010e8466cb83c3c208cc3304a2064d4743f;p=thirdparty%2FChart.js.git add number, null and undefined as valid return types (#8891) --- diff --git a/types/index.esm.d.ts b/types/index.esm.d.ts index 51ec1f7f6..6d6fa09bf 100644 --- a/types/index.esm.d.ts +++ b/types/index.esm.d.ts @@ -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