This repository has been archived on 2025-07-07. You can view files and clone it, but cannot push or open issues or pull requests.
Files
eternos/frontend/node_modules/workbox-navigation-preload/index.d.ts
2025-01-13 09:33:52 +03:00

24 lines
649 B
TypeScript

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 };