UNPKG

extra-sleep

Version:
16 lines (14 loc) 419 B
/** * Sleep for specified time (async). * [📘](https://github.com/nodef/extra-sleep/wiki/sleep) * @param ms time in milliseconds * @returns nothing */ declare function sleep(ms: number): Promise<void>; /** * Sleep for specified time. * [📘](https://github.com/nodef/extra-sleep/wiki/sleepSync) * @param ms time in milliseconds */ declare function sleepSync(ms: number): void; export { sleep, sleepSync };