mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
32 lines
750 B
TypeScript
32 lines
750 B
TypeScript
// Type definitions for node-scanf
|
|
// Project: https://github.com/ErikDubbelboer/node-sleep
|
|
// Definitions by: Jeongho Nam <http://samchon.org>, Rahul Rajaram <https://github.com/rajarz>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare namespace __node_sleep {
|
|
/**
|
|
* Sleep for <i>n</i> seconds.
|
|
*
|
|
* @param n Number of seconds to sleep.
|
|
*/
|
|
function sleep(n: number): void;
|
|
|
|
/**
|
|
* Sleep for n milliseconds.
|
|
*
|
|
* @param n Number of milliseconds to sleep.
|
|
*/
|
|
function msleep(n: number): void;
|
|
|
|
/**
|
|
* Sleep for n microseconds.
|
|
*
|
|
* @param n Number of microseconds to sleep; 1 second is 1,000,000 microseconds.
|
|
*/
|
|
function usleep(n: number): void;
|
|
}
|
|
|
|
declare module "sleep"
|
|
{
|
|
export = __node_sleep;
|
|
} |