fuc-new/doc/node_modules/unicorn-magic/default.d.ts
hellcat 6adbc04d4b 1
2025-10-03 17:17:08 +08:00

14 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>;