mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
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
This commit is contained in:
parent
c3f226e929
commit
b19bb96fae
30
bigscreen/index.d.ts
vendored
30
bigscreen/index.d.ts
vendored
@ -3,24 +3,16 @@
|
||||
// Definitions by: Douglas Eichelberger <https://github.com/dduugg/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
interface BigScreenStatic {
|
||||
// Properties
|
||||
element: Element;
|
||||
enabled: boolean;
|
||||
export as namespace BigScreen;
|
||||
|
||||
// Methods
|
||||
exit(): void;
|
||||
onchange(element: Element): void;
|
||||
onenter(element: Element): void;
|
||||
onerror(element: Element, reason: string): void;
|
||||
onexit(): void;
|
||||
request(element: Element, onEnter?: (element: Element) => void, onExit?: () => void, onError?: (element: Element, reason: string) => void): void;
|
||||
toggle(element: Element, onEnter?: (element: Element) => void, onExit?: () => void, onError?: (element: Element, reason: string) => void): void;
|
||||
videoEnabled(video: HTMLVideoElement): boolean;
|
||||
}
|
||||
export const element: Element;
|
||||
export const enabled: boolean;
|
||||
|
||||
declare var bigscreen: BigScreenStatic;
|
||||
|
||||
declare module "bigscreen" {
|
||||
export = bigscreen;
|
||||
}
|
||||
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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user