Skip to content

Commit

Permalink
fix(pagination): formatter functions now accept strings as return val…
Browse files Browse the repository at this point in the history
…ues (#5610)
  • Loading branch information
Lehoczky authored Apr 6, 2022
1 parent 6a0554b commit 629c1c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types/modules/pagination.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@ export interface PaginationOptions {
* format fraction pagination current number. Function receives current number,
* and you need to return formatted value
*/
formatFractionCurrent?: (number: number) => number;
formatFractionCurrent?: (number: number) => number | string;

/**
* format fraction pagination total number. Function receives total number, and you
* need to return formatted value
*/
formatFractionTotal?: (number: number) => number;
formatFractionTotal?: (number: number) => number | string;

/**
* This parameter allows totally customize pagination bullets, you need to pass here a function that accepts `index` number of
Expand Down

0 comments on commit 629c1c4

Please sign in to comment.