From fb59a41801629a25dc7f0738961e3aeeb60a9cc8 Mon Sep 17 00:00:00 2001 From: vinnie Date: Sat, 2 Nov 2024 01:19:07 +0900 Subject: [PATCH] fix(types): type definitions for `slidesEl`, `slidesGrid`, and `slidesSizesGrid` (#7768) --- src/types/swiper-class.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/types/swiper-class.d.ts b/src/types/swiper-class.d.ts index e33370108..85c417ff7 100644 --- a/src/types/swiper-class.d.ts +++ b/src/types/swiper-class.d.ts @@ -59,6 +59,11 @@ interface Swiper extends SwiperClass { */ wrapperEl: HTMLElement; + /** + * Wrapper HTML element + */ + slidesEl: HTMLElement; + /** * Array of slides HTML elements. To get specific slide HTMLElement use `swiper.slides[1]` */ @@ -116,6 +121,16 @@ interface Swiper extends SwiperClass { */ snapGrid: number[]; + /** + * Slides grid + */ + slidesGrid: number[]; + + /** + * Array of widths for slides + */ + slidesSizesGrid: number[]; + /** * `true` if slider on most "left"/"top" position */