diff --git a/types/swiper/index.d.ts b/types/swiper/index.d.ts index cbd399f139..aa6e3a537c 100644 --- a/types/swiper/index.d.ts +++ b/types/swiper/index.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.9 // declare namespace swiper { - declare module 'swiper' { +declare module 'swiper' { /** * Common Swiper events. */ @@ -57,6 +57,29 @@ */ type SwiperEvent = CommonEvent | PaginationEvent | AutoplayEvent | LazyLoadingEvent; + /** + * Swiper module types. + */ + type SwiperModule = + | Navigation + | Pagination + | Scrollbar + | Autoplay + | Parallax + | Lazy + | FadeEffect + | CoverflowEffect + | FlipEffect + | CubeEffect + | Zoom + | Keyboard + | Mousewheel + | Virtual + | HashNavigation + | History + | Controller + | A11y; + type DOM7Element = any; type SelectableElement = string | HTMLElement; @@ -1404,7 +1427,7 @@ /** * Installs modules on Swiper in runtime. */ - static use(modules: any[]): void; + static use(modules: SwiperModule[]): void; /** * Add new slides to the end. slides could be