From 57a76824baae8bb97a3535d5e8a737ec7b9e2d7b Mon Sep 17 00:00:00 2001 From: Billy Shih Date: Fri, 20 Jul 2018 18:13:07 -0700 Subject: [PATCH] [Victory] Fix tickFormat types (#27243) --- types/victory/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/victory/index.d.ts b/types/victory/index.d.ts index 31740217e7..d23ffea90b 100644 --- a/types/victory/index.d.ts +++ b/types/victory/index.d.ts @@ -1097,7 +1097,7 @@ declare module "victory" { * an array of display values for each tickValue. * @example d3.time.format("%Y"), (x) => x.toPrecision(2), ["first", "second", "third"] */ - tickFormat?: any[] | { (data: any): string | number }; + tickFormat?: any[] | { (tick: any, index: number, ticks: any[]): string | number }; /** * The tickValues prop explicitly specifies which tick values to draw on the axis. * @example ["apples", "bananas", "oranges"], [2, 4, 6, 8]