workbox-core
Version:
This module is used by a number of the other Workbox modules to share common code.
11 lines (10 loc) • 296 B
TypeScript
import '../_version.js';
/**
* Returns a promise that resolves and the passed number of milliseconds.
* This utility is an async/await-friendly version of `setTimeout`.
*
* @param {number} ms
* @return {Promise}
* @private
*/
export declare function timeout(ms: number): Promise<unknown>;