Skip to content

Commit fa6e597

Browse files
committed
fix(types): fix types for swiper/modules
1 parent c2b903b commit fa6e597

File tree

1 file changed

+53
-23
lines changed

1 file changed

+53
-23
lines changed

src/types/modules/index.d.ts

+53-23
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,53 @@
1-
export type * from './a11y.d.ts';
2-
export type * from './autoplay.d.ts';
3-
export type * from './controller.d.ts';
4-
export type * from './effect-coverflow.d.ts';
5-
export type * from './effect-cube.d.ts';
6-
export type * from './effect-fade.d.ts';
7-
export type * from './effect-flip.d.ts';
8-
export type * from './effect-creative.d.ts';
9-
export type * from './effect-cards.d.ts';
10-
export type * from './hash-navigation.d.ts';
11-
export type * from './history.d.ts';
12-
export type * from './keyboard.d.ts';
13-
export type * from './mousewheel.d.ts';
14-
export type * from './navigation.d.ts';
15-
export type * from './pagination.d.ts';
16-
export type * from './parallax.d.ts';
17-
export type * from './scrollbar.d.ts';
18-
export type * from './thumbs.d.ts';
19-
export type * from './virtual.d.ts';
20-
export type * from './zoom.d.ts';
21-
export type * from './free-mode.d.ts';
22-
export type * from './grid.d.ts';
23-
export type * from './manipulation.d.ts';
1+
import type { SwiperModule } from '../shared.d.ts';
2+
3+
declare const A11y: SwiperModule;
4+
declare const Autoplay: SwiperModule;
5+
declare const Controller: SwiperModule;
6+
declare const EffectCoverflow: SwiperModule;
7+
declare const EffectCube: SwiperModule;
8+
declare const EffectFade: SwiperModule;
9+
declare const EffectFlip: SwiperModule;
10+
declare const EffectCreative: SwiperModule;
11+
declare const EffectCards: SwiperModule;
12+
declare const HashNavigation: SwiperModule;
13+
declare const History: SwiperModule;
14+
declare const Keyboard: SwiperModule;
15+
declare const Lazy: SwiperModule;
16+
declare const Mousewheel: SwiperModule;
17+
declare const Navigation: SwiperModule;
18+
declare const Pagination: SwiperModule;
19+
declare const Parallax: SwiperModule;
20+
declare const Scrollbar: SwiperModule;
21+
declare const Thumbs: SwiperModule;
22+
declare const Virtual: SwiperModule;
23+
declare const Zoom: SwiperModule;
24+
declare const FreeMode: SwiperModule;
25+
declare const Grid: SwiperModule;
26+
declare const Manipulation: SwiperModule;
27+
28+
export {
29+
A11y,
30+
Autoplay,
31+
Controller,
32+
EffectCoverflow,
33+
EffectCube,
34+
EffectFade,
35+
EffectFlip,
36+
EffectCreative,
37+
EffectCards,
38+
HashNavigation,
39+
History,
40+
Keyboard,
41+
Lazy,
42+
Mousewheel,
43+
Navigation,
44+
Pagination,
45+
Parallax,
46+
Scrollbar,
47+
Thumbs,
48+
Virtual,
49+
Zoom,
50+
FreeMode,
51+
Grid,
52+
Manipulation,
53+
};

0 commit comments

Comments
 (0)