Skip to content

Commit 450c57a

Browse files
mwoessm.woess
and
m.woess
authored
feat: add types for minTranslate and maxTranslate functions (#7647)
Co-authored-by: m.woess <[email protected]>
1 parent bad6831 commit 450c57a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/types/swiper-class.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,16 @@ interface Swiper extends SwiperClass<SwiperEvents> {
385385
translateBounds?: boolean,
386386
): any;
387387

388+
/**
389+
* Get current minimal translate value
390+
*/
391+
minTranslate(): number;
392+
393+
/**
394+
* Get current maximal translate value
395+
*/
396+
maxTranslate(): number;
397+
388398
/**
389399
* Unset grab cursor
390400
*/

0 commit comments

Comments
 (0)