Files
DefinitelyTyped/bigscreen/index.d.ts
SuneLindhard b19bb96fae BigScreen - Update index.d.ts (#13723)
* Update index.d.ts

When porting a project to .ts I found some inconsistencies with this type definition and the library.

In "the how to use it examples" they use .toggle() without any parameters and BigScreen not bigscreen

* Update Index.d.ts - Suggestion from andy-ms
2017-01-12 09:39:59 -08:00

19 lines
931 B
TypeScript

// Type definitions for BigScreen 2.0.4
// Project: http://brad.is/coding/BigScreen/
// Definitions by: Douglas Eichelberger <https://github.com/dduugg/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export as namespace BigScreen;
export const element: Element;
export const enabled: boolean;
export function exit(): void;
export function onchange(element: Element): void;
export function onenter(element: Element): void;
export function onerror(element: Element, reason: string): void;
export function onexit(): void;
export function request(element: Element, onEnter?: (element: Element) => void, onExit?: () => void, onError?: (element: Element, reason: string) => void): void;
export function toggle(element?: Element, onEnter?: (element: Element) => void, onExit?: () => void, onError?: (element: Element, reason: string) => void): void;
export function videoEnabled(video: HTMLVideoElement): boolean;