mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
26 lines
583 B
TypeScript
26 lines
583 B
TypeScript
// Type definitions for node-scanf
|
|
// Project: https://github.com/ErikDubbelboer/node-sleep
|
|
// Definitions by: Jeongho Nam <http://samchon.org>
|
|
// 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 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;
|
|
} |