DefinitelyTyped/types/bigscreen/index.d.ts
2017-08-20 15:37:53 -07:00

19 lines
930 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;