fix warning

This commit is contained in:
Timi
2026-08-29 00:31:49 +08:00
parent f5beb65a62
commit 498d0f4b87
4 changed files with 101 additions and 3 deletions
+84
View File
@@ -0,0 +1,84 @@
diff --git a/es/swiper/props.mjs b/es/swiper/props.mjs
--- a/es/swiper/props.mjs
+++ b/es/swiper/props.mjs
@@ -55,5 +55,5 @@
},
navigation: {
- type: [Object, Function]
+ type: [Boolean, Object, Function]
},
nextMargin: {
diff --git a/esm/swiper/props.js b/esm/swiper/props.js
--- a/esm/swiper/props.js
+++ b/esm/swiper/props.js
@@ -55,5 +55,5 @@
},
navigation: {
- type: [Object, Function]
+ type: [Boolean, Object, Function]
},
nextMargin: {
diff --git a/lib/swiper/props.js b/lib/swiper/props.js
--- a/lib/swiper/props.js
+++ b/lib/swiper/props.js
@@ -55,5 +55,5 @@
},
navigation: {
- type: [Object, Function]
+ type: [Boolean, Object, Function]
},
nextMargin: {
diff --git a/cjs/swiper/props.js b/cjs/swiper/props.js
--- a/cjs/swiper/props.js
+++ b/cjs/swiper/props.js
@@ -59,5 +59,5 @@
},
navigation: {
- type: [Object, Function]
+ type: [Boolean, Object, Function]
},
nextMargin: {
diff --git a/es/swiper/type.d.ts b/es/swiper/type.d.ts
--- a/es/swiper/type.d.ts
+++ b/es/swiper/type.d.ts
@@ -10,6 +10,6 @@
height?: string | number;
interval?: number;
loop?: boolean;
- navigation?: SwiperNavigation | TNode;
+ navigation?: boolean | SwiperNavigation | TNode;
nextMargin?: string | number;
previousMargin?: string | number;
diff --git a/esm/swiper/type.d.ts b/esm/swiper/type.d.ts
--- a/esm/swiper/type.d.ts
+++ b/esm/swiper/type.d.ts
@@ -10,6 +10,6 @@
height?: string | number;
interval?: number;
loop?: boolean;
- navigation?: SwiperNavigation | TNode;
+ navigation?: boolean | SwiperNavigation | TNode;
nextMargin?: string | number;
previousMargin?: string | number;
diff --git a/lib/swiper/type.d.ts b/lib/swiper/type.d.ts
--- a/lib/swiper/type.d.ts
+++ b/lib/swiper/type.d.ts
@@ -10,6 +10,6 @@
height?: string | number;
interval?: number;
loop?: boolean;
- navigation?: SwiperNavigation | TNode;
+ navigation?: boolean | SwiperNavigation | TNode;
nextMargin?: string | number;
previousMargin?: string | number;
diff --git a/cjs/swiper/type.d.ts b/cjs/swiper/type.d.ts
--- a/cjs/swiper/type.d.ts
+++ b/cjs/swiper/type.d.ts
@@ -10,6 +10,6 @@
height?: string | number;
interval?: number;
loop?: boolean;
- navigation?: SwiperNavigation | TNode;
+ navigation?: boolean | SwiperNavigation | TNode;
nextMargin?: string | number;
previousMargin?: string | number;