forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jquery.fullscreen.d.ts
57 lines (49 loc) · 1.28 KB
/
jquery.fullscreen.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Type definitions for jquery.fullscreen
// Project: https://github.com/private-face/jquery.fullscreen
// Definitions by: Piraveen Kamalathas <https://github.com/piraveen>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts"/>
/**
* Extends jQuery interface
* i.e: To use $elem.fullscreen()
*/
interface JQuery {
fullscreen(options?: Object): void;
}
/**
* Interface for the jquery plugin
*/
interface JQueryFullscreen {
/**
* [open Activate fullscreen mode in a specific element through static method]
* @param {Element} element [description]
* @param {Object} options [description]
*/
open(element: Element, options?: Object): void;
/**
* [close Deactivate fullscreen mode]
* TODO: have to check for params
*/
close(): void;
/**
* [isFullScreen Get fullscreen status]
* @return {boolean} [description]
*/
isFullScreen(): boolean;
/**
* [isNativelySupported Check if fullscreen is supported by the browser]
* @return {boolean} [description]
*/
isNativelySupported(): boolean;
/**
* [exit Deactivate and destroy all fullscreen instances]
*/
exit(): void;
}
/**
* Extends JqueryStatic ($)
* i.e: To use $.fullscreen.functionName()
*/
interface JQueryStatic {
fullscreen: JQueryFullscreen;
}