Skip to content

Commit

Permalink
fix(types): Fix the type declarations for the y tick format
Browse files Browse the repository at this point in the history
  • Loading branch information
stof authored Jul 21, 2022
1 parent 55fbb02 commit d1c4a9b
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 @@ -337,7 +337,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 d1c4a9b

Please sign in to comment.