Browse Source

Fix a wrong argument name.

NaotoshiFujita 5 years ago
parent
commit
be582d65e9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/js/splide.d.ts

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

@@ -647,7 +647,7 @@ export class Splide {
 	off( events: keyof ElementEventMap, elm?: Element | Window | Document ): this;
 	off( events: keyof ElementEventMap, elm?: Element | Window | Document ): this;
 	off( events: string, elm?: Element | Window | Document ): this;
 	off( events: string, elm?: Element | Window | Document ): this;
 
 
-	emit( events: string, ...args: any[] ): this;
+	emit( event: string, ...args: any[] ): this;
 
 
 	go( control: string | number, wait?: boolean ): this;
 	go( control: string | number, wait?: boolean ): this;