From a8f2cab42a261df45e0be3ef91b0c96302e4d81f Mon Sep 17 00:00:00 2001 From: Egor Komarov Date: Thu, 16 Mar 2023 15:31:52 +0100 Subject: [PATCH] Fix pagination.d.ts render functions --- src/types/modules/pagination.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/types/modules/pagination.d.ts b/src/types/modules/pagination.d.ts index 619b22c0c..22c6291f8 100644 --- a/src/types/modules/pagination.d.ts +++ b/src/types/modules/pagination.d.ts @@ -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 @@ -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 @@ -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 @@ -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