mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-03 05:09:30 +08:00
14 lines
352 B
Text
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;
|