]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
add number, null and undefined as valid return types (#8891)
authorJacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com>
Tue, 13 Apr 2021 19:24:59 +0000 (21:24 +0200)
committerGitHub <noreply@github.com>
Tue, 13 Apr 2021 19:24:59 +0000 (22:24 +0300)
types/index.esm.d.ts

index 51ec1f7f622adce00ae36a7ef0d1efd5e5ab96b7..6d6fa09bf79941b78e974f052b82831b258f642d 100644 (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