Files
vat-api.eu/node_modules/srvx/dist/adapters/service-worker.d.mts
2026-02-13 22:02:30 +01:00

9 lines
473 B
TypeScript

import { Server, ServerOptions, ServerRequest } from "../types.mjs";
//#region src/adapters/service-worker.d.ts
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>;
//#endregion
export { FastResponse, FastURL, ServiceWorkerHandler, serve };