Skip to content

Commit

Permalink
feat: add types for minTranslate and maxTranslate functions (#7647)
Browse files Browse the repository at this point in the history
Co-authored-by: m.woess <[email protected]>
  • Loading branch information
mwoess and m.woess committed Jul 26, 2024
1 parent bad6831 commit 450c57a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/types/swiper-class.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,16 @@ interface Swiper extends SwiperClass<SwiperEvents> {
translateBounds?: boolean,
): any;

/**
* Get current minimal translate value
*/
minTranslate(): number;

/**
* Get current maximal translate value
*/
maxTranslate(): number;

/**
* Unset grab cursor
*/
Expand Down

0 comments on commit 450c57a

Please sign in to comment.