Initial commit

This commit is contained in:
Easy
2023-02-04 15:54:36 +08:00
committed by GitHub
commit 17710666b0
25 changed files with 17897 additions and 0 deletions

9
src/wait.ts Normal file
View File

@@ -0,0 +1,9 @@
export async function wait(milliseconds: number): Promise<string> {
return new Promise(resolve => {
if (isNaN(milliseconds)) {
throw new Error('milliseconds not a number')
}
setTimeout(() => resolve('done!'), milliseconds)
})
}