@types/sleep
TypeScript icon, indicating that this package has built-in type declarations

6.3.0 • Public • Published

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.

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, and Rahul Rajaram.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.8803ts3.0
0.0.8803ts4.2
0.0.8803ts4.1
0.0.8803ts4.0
0.0.8803ts3.9
0.0.8803ts3.8
0.0.8803ts3.7
0.0.8803ts3.6
0.0.8803ts3.5
0.0.8803ts3.4
0.0.8803ts3.3
0.0.8803ts3.2
0.0.8803ts3.1
6.3.0394ts5.0
6.3.0394latest
6.3.0394ts5.2
6.3.0394ts5.4
6.3.0394ts5.7
6.3.0394ts5.8
6.3.0394ts5.5
6.3.0394ts5.6
6.3.0394ts4.9
6.3.0394ts4.8
6.3.0394ts5.3
6.3.0394ts5.1
6.3.0394ts5.9
0.0.12126ts4.5
0.0.12126ts4.6
0.0.12126ts4.7
0.0.746ts2.4
0.0.746ts2.5
0.0.746ts2.6
0.0.746ts2.7
0.0.746ts2.3
0.0.746ts2.9
0.0.746ts2.2
0.0.746ts2.1
0.0.746ts2.0
0.0.746ts2.8
0.0.924ts4.3
0.0.924ts4.4

Version History

VersionDownloads (Last 7 Days)Published
6.3.0394
0.0.12126
0.0.112
0.0.101
0.0.924
0.0.8803
0.0.746
0.0.62
0.0.53
0.0.42
0.0.32
0.0.22
0.0.13

Package Sidebar

Install

npm i @types/sleep

Weekly Downloads

1,219

Version

6.3.0

License

MIT

Unpacked Size

3.65 kB

Total Files

5

Last publish

Collaborators

  • types