mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 15:27:05 +00:00
added SwiperModule type
This commit is contained in:
Vendored
+25
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user