npm.io
1.0.2 • Published 2 years ago

@types/on-wake-up

Licence
MIT
Version
1.0.2
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/on-wake-up

Summary

This package contains type definitions for on-wake-up (https://github.com/mafintosh/on-wake-up).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/on-wake-up.

index.d.ts

/**
 * Register a callback when the device presumably wakes up from sleep.
 * @param cb The callback to execute
 * @returns Function to unregister the callback
 */
declare function onWakeUp(cb: () => void): () => void;

export = onWakeUp;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0939 GMT
  • Dependencies: none

Credits

These definitions were written by Klaus Meinhardt.