Skip to content

Commit fb59a41

Browse files
authored
fix(types): type definitions for slidesEl, slidesGrid, and slidesSizesGrid (#7768)
1 parent f53e103 commit fb59a41

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/types/swiper-class.d.ts

+15
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ interface Swiper extends SwiperClass<SwiperEvents> {
5959
*/
6060
wrapperEl: HTMLElement;
6161

62+
/**
63+
* Wrapper HTML element
64+
*/
65+
slidesEl: HTMLElement;
66+
6267
/**
6368
* Array of slides HTML elements. To get specific slide HTMLElement use `swiper.slides[1]`
6469
*/
@@ -116,6 +121,16 @@ interface Swiper extends SwiperClass<SwiperEvents> {
116121
*/
117122
snapGrid: number[];
118123

124+
/**
125+
* Slides grid
126+
*/
127+
slidesGrid: number[];
128+
129+
/**
130+
* Array of widths for slides
131+
*/
132+
slidesSizesGrid: number[];
133+
119134
/**
120135
* `true` if slider on most "left"/"top" position
121136
*/

0 commit comments

Comments
 (0)