From 450c57a4c6d651207e4f79ffe7ac823ab2cfcb63 Mon Sep 17 00:00:00 2001 From: "m.woess" <30020455+mwoess@users.noreply.github.com> Date: Fri, 26 Jul 2024 18:12:09 +0200 Subject: [PATCH] feat: add types for minTranslate and maxTranslate functions (#7647) Co-authored-by: m.woess --- src/types/swiper-class.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/types/swiper-class.d.ts b/src/types/swiper-class.d.ts index 213916dc6..e33370108 100644 --- a/src/types/swiper-class.d.ts +++ b/src/types/swiper-class.d.ts @@ -385,6 +385,16 @@ interface Swiper extends SwiperClass { translateBounds?: boolean, ): any; + /** + * Get current minimal translate value + */ + minTranslate(): number; + + /** + * Get current maximal translate value + */ + maxTranslate(): number; + /** * Unset grab cursor */