mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 12:11:47 +00:00
Update @types/screenfull to 3.0.0 (#12173)
This commit is contained in:
committed by
Masahiro Wakame
parent
35bbd73130
commit
a71096b3eb
Vendored
+3
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for screenfull.js 2.0.0
|
||||
// Type definitions for screenfull.js 3.0.0
|
||||
// Project: https://github.com/sindresorhus/screenfull.js
|
||||
// Definitions by: Ilia Choly <http://github.com/icholy>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -24,3 +24,5 @@ interface IScreenfull {
|
||||
toggle(elem?: Element): void;
|
||||
exit(): void;
|
||||
}
|
||||
|
||||
export = screenfull;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
|
||||
import screenfull = require('screenfull');
|
||||
|
||||
function test_fullscreen_page() {
|
||||
if (screenfull.enabled) {
|
||||
@@ -48,7 +48,7 @@ function test_detect_error() {
|
||||
document.addEventListener(screenfull.raw.fullscreenerror, function (event) {
|
||||
console.error('Failed to enable fullscreen', event);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function test_access_element() {
|
||||
|
||||
Reference in New Issue
Block a user