mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
[Victory] Fix tickFormat types (#27243)
This commit is contained in:
committed by
Wesley Wigham
parent
f15ad0848a
commit
57a76824ba
2
types/victory/index.d.ts
vendored
2
types/victory/index.d.ts
vendored
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user