Urara-Blog/node_modules/.pnpm-store/v3/files/98/833c42dc90d86777c9364e29229d88ded180db119cc517bc9685a85fa5e72ec6a33d27eb7f3cabffe77dbfa4ad10c9e7a640c8fc519a0fb2305d50ffbb6885
2022-08-14 01:14:53 +08:00

37 lines
868 B
Text

/*
Copyright 2018 Google LLC
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/
import {disable} from './disable.js';
import {enable} from './enable.js';
import {isSupported} from './isSupported.js';
import './_version.js';
// See https://github.com/GoogleChrome/workbox/issues/2946
interface NavigationPreloadState {
enabled?: boolean;
headerValue?: string;
}
interface NavigationPreloadManager {
disable(): Promise<void>;
enable(): Promise<void>;
getState(): Promise<NavigationPreloadState>;
setHeaderValue(value: string): Promise<void>;
}
declare global {
interface ServiceWorkerRegistration {
readonly navigationPreload: NavigationPreloadManager;
}
}
/**
* @module workbox-navigation-preload
*/
export {disable, enable, isSupported};