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

4.0.34 • Public • Published

Installation

npm install --save @types/cordova-plugin-insomnia

Summary

This package contains type definitions for cordova-plugin-insomnia (https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cordova-plugin-insomnia.

index.d.ts

interface Window {
    plugins: Plugins;
}

interface Plugins {
    insomnia: InsomniaPlugin.Insomnia;
}

declare namespace InsomniaPlugin {
    export interface Insomnia {
        /**
         * Prevent the screen of the mobile device from falling asleep.
         */
        keepAwake(success?: () => any, fail?: () => any): void;

        /**
         * After making your app practically a zombie, you can allow it to sleep again by calling allowSleepAgain.
         */
        allowSleepAgain(success?: () => any, fail?: () => any): void;
    }
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by Markus Wagner.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/cordova-plugin-insomnia

Weekly Downloads

2,191

Version

4.0.34

License

MIT

Unpacked Size

3.78 kB

Total Files

5

Last publish

Collaborators

  • types