Skip to content

Commit

Permalink
fix(types): type definitions for slidesEl, slidesGrid, and `slide…
Browse files Browse the repository at this point in the history
…sSizesGrid` (#7768)
  • Loading branch information
davindev authored Nov 1, 2024
1 parent f53e103 commit fb59a41
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/types/swiper-class.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ interface Swiper extends SwiperClass<SwiperEvents> {
*/
wrapperEl: HTMLElement;

/**
* Wrapper HTML element
*/
slidesEl: HTMLElement;

/**
* Array of slides HTML elements. To get specific slide HTMLElement use `swiper.slides[1]`
*/
Expand Down Expand Up @@ -116,6 +121,16 @@ interface Swiper extends SwiperClass<SwiperEvents> {
*/
snapGrid: number[];

/**
* Slides grid
*/
slidesGrid: number[];

/**
* Array of widths for slides
*/
slidesSizesGrid: number[];

/**
* `true` if slider on most "left"/"top" position
*/
Expand Down

0 comments on commit fb59a41

Please sign in to comment.