UNPKG

declarations

Version:

[![npm version](https://badge.fury.io/js/declarations.svg)](https://www.npmjs.com/package/declarations)

27 lines (22 loc) 665 B
// 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; }