Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Canceled after 0s
19 lines
737 B
Plaintext
19 lines
737 B
Plaintext
import { Env, Schema } from "../../types.js";
|
|
import { Hono } from "../../hono.js";
|
|
import { FetchEvent } from "./types.js";
|
|
//#region src/adapter/service-worker/handler.d.ts
|
|
type Handler = (evt: FetchEvent) => void;
|
|
/**
|
|
* @deprecated `hono/service-worker` will be removed in v5. Install `@hono/service-worker` and import from there instead.
|
|
*/
|
|
export type HandleOptions = {
|
|
fetch?: typeof fetch;
|
|
};
|
|
/**
|
|
* Adapter for Service Worker
|
|
* @deprecated `hono/service-worker` will be removed in v5. Install `@hono/service-worker` and import from there instead.
|
|
*/
|
|
export declare const handle: <E extends Env, S extends Schema, BasePath extends string>(app: Hono<E, S, BasePath>, opts?: HandleOptions) => Handler;
|
|
//#endregion
|
|
export {};
|