diff --git a/src/types/modules/pagination.d.ts b/src/types/modules/pagination.d.ts index a2d210725..909be89e0 100644 --- a/src/types/modules/pagination.d.ts +++ b/src/types/modules/pagination.d.ts @@ -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