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.
23 lines
649 B
23 lines
649 B
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 };
|
|
|