feat: init
This commit is contained in:
9
node_modules/srvx/dist/adapters/service-worker.d.mts
generated
vendored
Normal file
9
node_modules/srvx/dist/adapters/service-worker.d.mts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
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 };
|
||||
Reference in New Issue
Block a user