DefinitelyTyped/types/on-wake-up/index.d.ts
2018-10-25 10:25:10 +02:00

14 lines
461 B
TypeScript

// Type definitions for on-wake-up 1.0
// Project: https://github.com/mafintosh/on-wake-up
// Definitions by: Klaus Meinhardt <https://github.com/ajafff>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* 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;