UNPKG

phecda-server

Version:

server framework that provide IOC/type-reuse/http&rpc-adaptor

17 lines (14 loc) 538 B
import { H3Event, Router, _RequestMiddleware } from 'h3'; import { F as Factory } from '../../core-mOKtuP0F.mjs'; import { H as HttpCtx, a as HttpOptions } from '../../types-BkU6kQWV.mjs'; import 'phecda-core'; import '../../meta-EGS-4cNY.mjs'; import 'node:http'; interface H3Ctx extends HttpCtx { type: 'h3'; event: H3Event; app: Router; } type Addon = _RequestMiddleware; declare function bind(router: Router, data: Awaited<ReturnType<typeof Factory>>, opts?: HttpOptions): void; export { type Addon, type H3Ctx, bind };