Skip to content

Commit

Permalink
fix(pagination): fix pagination.d.ts render functions return types (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Odrin committed Mar 20, 2023
1 parent a266b78 commit 34973a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/types/modules/pagination.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export interface PaginationOptions {
* });
* ```
*/
renderBullet?: (index: number, className: string) => void;
renderBullet?: (index: number, className: string) => string;

/**
* This parameter allows to customize "fraction" pagination html. Only for `'fraction'` pagination type
Expand All @@ -166,7 +166,7 @@ export interface PaginationOptions {
* });
* ```
*/
renderFraction?: (currentClass: string, totalClass: string) => void;
renderFraction?: (currentClass: string, totalClass: string) => string;

/**
* This parameter allows to customize "progress" pagination. Only for `'progress'` pagination type
Expand All @@ -183,7 +183,7 @@ export interface PaginationOptions {
* });
* ```
*/
renderProgressbar?: (progressbarFillClass: string) => void;
renderProgressbar?: (progressbarFillClass: string) => string;

/**
* This parameter is required for `'custom'` pagination type where you have to specify
Expand All @@ -201,7 +201,7 @@ export interface PaginationOptions {
* });
* ```
*/
renderCustom?: (swiper: Swiper, current: number, total: number) => void;
renderCustom?: (swiper: Swiper, current: number, total: number) => string;

/**
* CSS class name of single pagination bullet
Expand Down

0 comments on commit 34973a1

Please sign in to comment.