UNPKG

phecda-server

Version:

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

17 lines (14 loc) 535 B
import { H3Event, Router, _RequestMiddleware } from 'h3'; import { F as Factory } from '../../core-BTSHIAyB.js'; import { H as HttpCtx, a as HttpOptions } from '../../types-Cosv4nol.js'; import 'phecda-core'; import '../../meta-DNF6Fl27.js'; 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 };