phecda-server
Version:
server framework that provide IOC/type-reuse/http&rpc-adaptor
17 lines (14 loc) • 535 B
TypeScript
import { H3Event, Router, _RequestMiddleware } from 'h3';
import { F as Factory } from '../../core-qL97H3d_.js';
import { H as HttpCtx, a as HttpOptions } from '../../types-DGUpAXle.js';
import 'phecda-core';
import '../../meta-EGS-4cNY.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 };