feat: init
This commit is contained in:
13
node_modules/unicorn-magic/default.d.ts
generated
vendored
Normal file
13
node_modules/unicorn-magic/default.d.ts
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
Delays the promise for the given duration.
|
||||
|
||||
@example
|
||||
```
|
||||
import {delay} from 'unicorn-magic';
|
||||
|
||||
await delay({seconds: 1});
|
||||
|
||||
console.log('1 second later');
|
||||
```
|
||||
*/
|
||||
export function delay(duration: {seconds: number} | {milliseconds: number}): Promise<void>;
|
||||
Reference in New Issue
Block a user