diff --git a/swipe/swipe-tests.ts b/swipe/swipe-tests.ts index 26c11f6fdf..a13006ebbb 100644 --- a/swipe/swipe-tests.ts +++ b/swipe/swipe-tests.ts @@ -1,4 +1,4 @@ /// // Creation of element -var mySwipe = Swipe(document.getElementById('slider')); \ No newline at end of file +var mySwipe = new Swipe(document.getElementById('slider')); \ No newline at end of file diff --git a/swipe/swipe.d.ts b/swipe/swipe.d.ts index 5b8d396f58..9cb753ef91 100644 --- a/swipe/swipe.d.ts +++ b/swipe/swipe.d.ts @@ -16,7 +16,7 @@ interface SwipeOptions { } declare class Swipe { - constructor(container: HTMLElement, options: SwipeOptions); + constructor(container: HTMLElement, options?: SwipeOptions); prev(): void; next(): void; getPos(): number;