Urara-Blog/node_modules/.pnpm-store/v3/files/c9/7b4fac0994525abc87dc1b2d62999c49c9058042d8cbd4d736c1dbce2116c8af6e90c73a5372deba7d20d3eca9c8b9a50f69d9c36b97d9405dc51355129304
2022-08-14 01:14:53 +08:00

14 lines
352 B
Text

import type { Context, Initializer } from 'worktop';
declare global {
function addEventListener(
type: 'fetch',
handler: (event: FetchEvent) => void
): void;
}
/**
* Assign the Module `Initializer` as the "fetch" event listener.
* @example sw.start(API.run);
*/
export function start<C extends Context = Context>(run: Initializer<C>): void;