elearning/Frontend-Learner/node_modules/unicorn-magic/default.d.ts
2026-01-13 10:48:02 +07:00

13 lines
257 B
TypeScript

/**
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>;