mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
* 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
19 lines
931 B
TypeScript
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;
|