mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-28 12:43:06 +08:00
Merge pull request #1748 from dduugg/master
add module declaration to bigscreen.d.ts
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
||||
Vendored
+8
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user