@types/fscreen
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Installation

npm install --save @types/fscreen

Summary

This package contains type definitions for fscreen (https://github.com/rafrex/fscreen#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fscreen.

index.d.ts

type Handler = (e?: Event) => void;
type RequestFullScreenFunction = (element: Element) => void;
type EventName =
    | "fullscreenEnabled"
    | "fullscreenElement"
    | "requestFullscreen"
    | "exitFullscreen"
    | "fullscreenchange"
    | "fullscreenerror";

declare class Fscreen {
    readonly fullscreenElement: Element | undefined;
    readonly fullscreenEnabled: boolean;
    readonly exitFullscreen: Handler;
    onfullscreenchange: Handler;
    onfullscreenerror: Handler;

    addEventListener(type: EventName, handler: Handler, options?: boolean | AddEventListenerOptions): void;
    removeEventListener(type: EventName, handler: Handler, options?: boolean | AddEventListenerOptions): void;
    requestFullscreen(element: Element): void;
    requestFullscreenFunction(element: Element): RequestFullScreenFunction;
}

declare const fscreen: Fscreen;
export default fscreen;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Joscha Feth, and Terry Mun.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/fscreen

Weekly Downloads

38,461

Version

1.0.4

License

MIT

Unpacked Size

4.48 kB

Total Files

5

Last publish

Collaborators

  • types