mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 05:20:24 +08:00
19 lines
526 B
TypeScript
19 lines
526 B
TypeScript
// Type definitions for Zynga Viewporter v2.1
|
|
// Project: https://github.com/zynga/viewporter
|
|
// Definitions by: Boris Yankov <https://github.com/borisyankov>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
interface Viewporter {
|
|
preventPageScroll: boolean;
|
|
forceDetection: boolean;
|
|
ACTIVE: boolean;
|
|
READY: boolean;
|
|
|
|
isLandscape(): boolean;
|
|
ready(callback: EventListener): void;
|
|
change(callback: EventListener): void;
|
|
refresh(): void;
|
|
}
|
|
|
|
declare var viewporter: Viewporter;
|