From 8876022d7cb02d97ae74038c56d50a25758c2ff7 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Wed, 6 Jul 2022 17:00:42 +0200 Subject: [PATCH] fix(types): Fix the signature of the tick format callback for timeseries Remove wrong number type from axis.x.tick.format --- types/axis.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/axis.d.ts b/types/axis.d.ts index c7e19c48c..109088802 100644 --- a/types/axis.d.ts +++ b/types/axis.d.ts @@ -192,7 +192,7 @@ export interface XTickConfiguration { * A function to format tick value. Format string is also available for timeseries data. */ format?: string - | ((this: Chart, x: number | Date) => string | number) + | ((this: Chart, x: Date) => string | number) | ((this: Chart, index: number, categoryName: string) => string); /**