9 lines
No EOL
496 B
TypeScript
9 lines
No EOL
496 B
TypeScript
import { _ as ServerRequest, f as Server, h as ServerOptions } from "../_chunks/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 }; |