mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
add module declaration to bigscreen.d.ts
This commit is contained in:
parent
e49bdda008
commit
f1ca4ab75f
@ -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.");
|
||||
}
|
||||
|
||||
10
bigscreen/bigscreen.d.ts
vendored
10
bigscreen/bigscreen.d.ts
vendored
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user