waitUntil.d.ts 363 B

123456789101112
  1. import '../_version.js';
  2. /**
  3. * A utility method that makes it easier to use `event.waitUntil` with
  4. * async functions and return the result.
  5. *
  6. * @param {ExtendableEvent} event
  7. * @param {Function} asyncFn
  8. * @return {Function}
  9. * @private
  10. */
  11. declare function waitUntil(event: ExtendableEvent, asyncFn: () => Promise<any>): Promise<any>;
  12. export { waitUntil };