enable.d.ts 535 B

12345678910111213
  1. import './_version.js';
  2. /**
  3. * If the browser supports Navigation Preload, then this will enable it.
  4. *
  5. * @param {string} [headerValue] Optionally, allows developers to
  6. * [override](https://developers.google.com/web/updates/2017/02/navigation-preload#changing_the_header)
  7. * the value of the `Service-Worker-Navigation-Preload` header which will be
  8. * sent to the server when making the navigation request.
  9. *
  10. * @memberof module:workbox-navigation-preload
  11. */
  12. declare function enable(headerValue?: string): void;
  13. export { enable };