better Util.sleep signature

This commit is contained in:
Michael Peters 2022-10-19 22:44:26 -07:00
parent cb899d92a0
commit 0af021bd32

View File

@ -91,8 +91,8 @@ export default class Util {
}
/** waits a number of MS before continuing */
static async sleep(ms: number): Promise<unknown> {
return await new Promise(resolve => {
static async sleep(ms: number): Promise<void> {
await new Promise(resolve => {
setTimeout(resolve, ms);
});
}