add module declaration to bigscreen.d.ts

This commit is contained in:
Douglas Eichelberger
2014-02-25 16:01:22 -08:00
parent e49bdda008
commit f1ca4ab75f
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;
}