mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
14 lines
461 B
TypeScript
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;
|