Merge pull request #1748 from dduugg/master

add module declaration to bigscreen.d.ts
This commit is contained in:
Bart van der Schoor
2014-02-26 16:07:58 +01:00
2 changed files with 10 additions and 2 deletions
+2
View File
@@ -1,5 +1,7 @@
/// <reference path="bigscreen.d.ts"/>
import BigScreen = require("bigscreen");
BigScreen.onchange = function(element: Element) {
console.log("Full-screen element " + element + " changed.");
}
+8 -2
View File
@@ -4,9 +4,11 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface BigScreenStatic {
element: any;
// Properties
element: Element;
enabled: boolean;
// Methods
exit(): void;
onchange(element: Element): void;
onenter(element: Element): void;
@@ -17,4 +19,8 @@ interface BigScreenStatic {
videoEnabled(video: HTMLVideoElement): boolean;
}
declare var BigScreen: BigScreenStatic;
declare var bigscreen: BigScreenStatic;
declare module "bigscreen" {
export = bigscreen;
}