Update @types/screenfull to 3.0.0 (#12173)

This commit is contained in:
Connor Peet
2016-10-26 00:47:47 +09:00
committed by Masahiro Wakame
parent 35bbd73130
commit a71096b3eb
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -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;
+2 -2
View File
@@ -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() {