UNPKG

633 BTypeScriptView Raw
1import './_version.js';
2/**
3 * Helper function that calls
4 * {@link PrecacheController#matchPrecache} on the default
5 * {@link PrecacheController} instance.
6 *
7 * If you are creating your own {@link PrecacheController}, then call
8 * {@link PrecacheController#matchPrecache} on that instance,
9 * instead of using this function.
10 *
11 * @param {string|Request} request The key (without revisioning parameters)
12 * to look up in the precache.
13 * @return {Promise<Response|undefined>}
14 *
15 * @memberof workbox-precaching
16 */
17declare function matchPrecache(request: string | Request): Promise<Response | undefined>;
18export { matchPrecache };