Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pagination): formatter functions now accept strings as return values #5610

Merged
merged 1 commit into from
Apr 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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