浏览代码

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

NaotoshiFujita 4 年之前
父节点
当前提交
6b106d9170
共有 1 个文件被更改,包括 3 次插入3 次删除
  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.