diff --git a/src/wait.ts b/src/wait.ts index 9eff51f..cebe7b9 100644 --- a/src/wait.ts +++ b/src/wait.ts @@ -1,10 +1,10 @@ export function wait(milliseconds: number) { return new Promise((resolve) => { if (isNaN(milliseconds)) { - throw new Error('milleseconds not a number'); + throw new Error('milliseconds not a number'); } setTimeout(() => resolve("done!"), milliseconds) }); } - \ No newline at end of file +