serwist
Version:
A Swiss Army knife for service workers.
26 lines • 1.15 kB
TypeScript
import type { Serwist } from "../Serwist.js";
import type { PrecacheOptions } from "../types.js";
import { PrecacheCacheKeyPlugin } from "./PrecacheCacheKeyPlugin.js";
export declare const parsePrecacheOptions: (serwist: Serwist, precacheOptions?: PrecacheOptions) => {
precacheStrategyOptions: {
cacheName: string;
plugins: (import("../types.js").SerwistPlugin | PrecacheCacheKeyPlugin)[];
fetchOptions: RequestInit | undefined;
matchOptions: CacheQueryOptions | undefined;
fallbackToNetwork: boolean | undefined;
};
precacheRouteOptions: {
directoryIndex: string | null | undefined;
ignoreURLParametersMatching: RegExp[] | undefined;
cleanURLs: boolean | undefined;
urlManipulation: import("../types.js").UrlManipulation | undefined;
};
precacheMiscOptions: {
cleanupOutdatedCaches: boolean | undefined;
concurrency: number;
navigateFallback: string | undefined;
navigateFallbackAllowlist: RegExp[] | undefined;
navigateFallbackDenylist: RegExp[] | undefined;
};
};
//# sourceMappingURL=parsePrecacheOptions.d.ts.map