Added project annotation and explicit return

This commit is contained in:
Haskell Camargo
2015-05-23 01:22:22 -03:00
parent 0983e63916
commit cf984a7d53
2 changed files with 14 additions and 13 deletions
+10 -10
View File
@@ -2,16 +2,16 @@
var scroller: Scroller = new Scroller((left, top, zoom) => { });
scroller = new Scroller((left, top, zoom) => { }, {
scrollingX: true;
scrollingY: true;
animating: true;
animationDuration: 400;
bouncing: false;
locking: false;
paging: false;
snapping: true;
zooming: 10;
minZoom: 1;
scrollingX: true,
scrollingY: true,
animating: true,
animationDuration: 400,
bouncing: false,
locking: false,
paging: false,
snapping: true,
zooming: 10,
minZoom: 1,
maxZoom: 2
});
+4 -3
View File
@@ -1,4 +1,5 @@
// Type definitions for Zynga Scroller
// Project: Zynga Scroller
// Definitions by: Marcelo Haskell Camargo <https://github.com/haskellcamargo>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@@ -19,9 +20,9 @@ declare class Scroller {
setDimensions(clientWidth: number, clientHeight: number, contentWidth: number,
contentHeight: number): void;
setPosition(clientLeft: number, clientTop: number): void;
setSnapSize(width: number, height: number);
setSnapSize(width: number, height: number): void;
activatePullToRefresh<T>(height: number, activate: () => void,
deactivate: () => void, start: () => void);
deactivate: () => void, start: () => void): void;
finishPullToRefresh(): void;
getValues(): {
left: number;
@@ -44,6 +45,6 @@ declare class Scroller {
pageX: number;
pageY: number
}, timeStamp: number, scale?: number): void;
doTouchMove(touches: [any], timeStamp: number);
doTouchMove(touches: [any], timeStamp: number): void;
doTouchEnd(timeStamp: number): void;
}