Browse Source

Bug Fix: The return type of Track.toPosition() was wrong.

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

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

@@ -591,7 +591,7 @@ export interface Track extends Component {
 	translate( position: number ): void;
 	trim( position: number ): number;
 	toCoord( position: number ): Coordinates;
-	toPosition( index: number ): Coordinates;
+	toPosition( index: number ): number;
 	toIndex( index: number ): number;
 	offset(): number;
 }