v1.0 with SW PWA enabled
This commit is contained in:
33
frontend/node_modules/workbox-precaching/PrecacheRoute.d.ts
generated
vendored
Normal file
33
frontend/node_modules/workbox-precaching/PrecacheRoute.d.ts
generated
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
import { Route } from 'workbox-routing/Route.js';
|
||||
import { PrecacheRouteOptions } from './_types.js';
|
||||
import { PrecacheController } from './PrecacheController.js';
|
||||
import './_version.js';
|
||||
/**
|
||||
* A subclass of {@link workbox-routing.Route} that takes a
|
||||
* {@link workbox-precaching.PrecacheController}
|
||||
* instance and uses it to match incoming requests and handle fetching
|
||||
* responses from the precache.
|
||||
*
|
||||
* @memberof workbox-precaching
|
||||
* @extends workbox-routing.Route
|
||||
*/
|
||||
declare class PrecacheRoute extends Route {
|
||||
/**
|
||||
* @param {PrecacheController} precacheController A `PrecacheController`
|
||||
* instance used to both match requests and respond to fetch events.
|
||||
* @param {Object} [options] Options to control how requests are matched
|
||||
* against the list of precached URLs.
|
||||
* @param {string} [options.directoryIndex=index.html] The `directoryIndex` will
|
||||
* check cache entries for a URLs ending with '/' to see if there is a hit when
|
||||
* appending the `directoryIndex` value.
|
||||
* @param {Array<RegExp>} [options.ignoreURLParametersMatching=[/^utm_/, /^fbclid$/]] An
|
||||
* array of regex's to remove search params when looking for a cache match.
|
||||
* @param {boolean} [options.cleanURLs=true] The `cleanURLs` option will
|
||||
* check the cache for the URL with a `.html` added to the end of the end.
|
||||
* @param {workbox-precaching~urlManipulation} [options.urlManipulation]
|
||||
* This is a function that should take a URL and return an array of
|
||||
* alternative URLs that should be checked for precache matches.
|
||||
*/
|
||||
constructor(precacheController: PrecacheController, options?: PrecacheRouteOptions);
|
||||
}
|
||||
export { PrecacheRoute };
|
||||
Reference in New Issue
Block a user