fetchWrapper.d.ts 379 B

123456789101112
  1. import { WorkboxPlugin } from '../types.js';
  2. import '../_version.js';
  3. interface WrappedFetchOptions {
  4. request: Request | string;
  5. event?: ExtendableEvent;
  6. plugins?: WorkboxPlugin[];
  7. fetchOptions?: RequestInit;
  8. }
  9. declare const fetchWrapper: {
  10. fetch: ({ request, fetchOptions, event, plugins, }: WrappedFetchOptions) => Promise<any>;
  11. };
  12. export { fetchWrapper };