Skip to content

Commit

Permalink
fix(types): Fix the type declarations for the y tick format (#2865)
Browse files Browse the repository at this point in the history
  • Loading branch information
stof authored Sep 19, 2022
1 parent 046aedb commit 2e38dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/axis.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ export interface YTickConfiguration {
* Set formatter for y axis tick text.
* This option accepts d3.format object as well as a function you define.
*/
format?: (this: Chart, x: number | Date) => string | number;
format?: ((this: Chart, x: number) => string | number) | ((this: Chart, x: Date) => string | number);

/**
* Setting for culling ticks.
Expand Down

0 comments on commit 2e38dee

Please sign in to comment.