mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
27 lines
665 B
TypeScript
27 lines
665 B
TypeScript
// Type definitions for screenfull.js 2.0.0
|
|
// Project: https://github.com/sindresorhus/screenfull.js
|
|
// Definitions by: Ilia Choly <http://github.com/icholy>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
|
|
declare var screenfull: IScreenfull;
|
|
|
|
interface IScreenfullRaw {
|
|
requestFullscreen?: string;
|
|
exitFullscreen?: string;
|
|
fullscreenElement?: string;
|
|
fullscreenEnabled?: string;
|
|
fullscreenchange?: string;
|
|
fullscreenerror?: string;
|
|
}
|
|
|
|
interface IScreenfull {
|
|
isFullscreen: boolean;
|
|
element: Element;
|
|
enabled: boolean;
|
|
raw: IScreenfullRaw;
|
|
request(elem?: Element): void;
|
|
toggle(elem?: Element): void;
|
|
exit(): void;
|
|
}
|