@mvquezm/dragonfly_browser_types
v1.0.1
Published
Types for Dragonfly Browser API
Downloads
11
Readme
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);
}