Ver código fonte

Bug Fix: Update 'height' and destroy() types(#123, #124).

NaotoshiFujita 4 anos atrás
pai
commit
6b106d9170
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      src/js/splide.d.ts

+ 3 - 3
src/js/splide.d.ts

@@ -44,12 +44,12 @@ export interface BreakpointOptions {
 	/**
 	 * @default 0
 	 */
-	width?: number;
+	width?: number | string;
 
 	/**
 	 * @default 0
 	 */
-	height?: number;
+	height?: number | string;
 
 	/**
 	 * @default 0
@@ -673,7 +673,7 @@ export class Splide {
 
 	refresh(): this;
 
-	destroy( completely: boolean ): this;
+	destroy( completely?: boolean ): this;
 }
 
 // Export the main class as default.