timeout.d.ts 296 B

12345678910
  1. import '../_version.js';
  2. /**
  3. * Returns a promise that resolves and the passed number of milliseconds.
  4. * This utility is an async/await-friendly version of `setTimeout`.
  5. *
  6. * @param {number} ms
  7. * @return {Promise}
  8. * @private
  9. */
  10. export declare function timeout(ms: number): Promise<unknown>;