mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Fix tests
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/// <reference path="swipe.d.ts" />
|
||||
|
||||
// Creation of element
|
||||
var mySwipe = Swipe(document.getElementById('slider'));
|
||||
var mySwipe = new Swipe(document.getElementById('slider'));
|
||||
Vendored
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user