UNPKG

@types/sleep

Version:
44 lines (35 loc) 1.12 kB
# Installation > `npm install --save @types/sleep` # Summary This package contains type definitions for sleep (https://github.com/ErikDubbelboer/node-sleep). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sleep. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sleep/index.d.ts) ````ts declare const sleepDefault: { /** * Sleep for <i>n</i> seconds. * * @param n Number of seconds to sleep. */ sleep(n: number): void; /** * Sleep for n milliseconds. * * @param n Number of milliseconds to sleep. */ msleep(n: number): void; /** * Sleep for n microseconds. * * @param n Number of microseconds to sleep; 1 second is 1,000,000 microseconds. */ usleep(n: number): void; }; export = sleepDefault; ```` ### Additional Details * Last updated: Wed, 23 Oct 2024 02:32:18 GMT * Dependencies: none # Credits These definitions were written by [Jeongho Nam](http://samchon.org), and [Rahul Rajaram](https://github.com/rajarz).