refactoring to ts
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
export default async function delay(time: number = 500) {
|
||||
return new Promise((resolve) => {
|
||||
setTimeout(() => {
|
||||
resolve(true);
|
||||
}, time);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user