You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
649 B
24 lines
649 B
2 years ago
|
import { disable } from './disable.js';
|
||
|
import { enable } from './enable.js';
|
||
|
import { isSupported } from './isSupported.js';
|
||
|
import './_version.js';
|
||
|
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 };
|