@mvquezm/dragonfly_browser_types
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Dragonfly Browser API types

See https://github.com/mvquezm/dragonfly-browser for details and docs.

Install

npm i @extr3mis/dragonfly_browser_types

Usage


import type { DragonflyApi } from "@extr3mis/dragonfly_browser_types";

let dragonflyApi = ('dragonflyApi' in navigator) ? navigator.dragonflyApi as DragonflyApi : undefined;

const enter3D = () => {
    dragonflyApi?.leia()?.enableBacklight(false);
}

/@mvquezm/dragonfly_browser_types/

    Package Sidebar

    Install

    npm i @mvquezm/dragonfly_browser_types

    Weekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    1.7 kB

    Total Files

    3

    Last publish

    Collaborators

    • mvquezm