site-panzai/node_modules/srvx/dist/adapters/service-worker.d.mts
2026-11-13 13:57:04 +01:00

6 lines
No EOL
424 B
TypeScript

import { Server, ServerOptions, ServerRequest } from "../_chunks/types.mjs";
declare const FastURL: typeof globalThis.URL;
declare const FastResponse: typeof globalThis.Response;
type ServiceWorkerHandler = (request: ServerRequest, event: FetchEvent) => Response | Promise<Response>;
declare function serve(options: ServerOptions): Server<ServiceWorkerHandler>;
export { FastResponse, FastURL, ServiceWorkerHandler, serve };