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.d.ts render functions #6499

Merged
merged 1 commit into from
Mar 20, 2023
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
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