@hestjs/core
Version:
HestJS Core Framework - A TypeScript framework built on Hono with dependency injection and decorators
24 lines • 530 B
TypeScript
import type { Context, Env } from "hono";
/**
* 应用上下文 - 兼容 Hono Context,提供类型安全
*/
export type HestContext<E extends Env = Env> = Context<E>;
/**
* 应用实例接口
*/
export interface HestApplication {
/**
* 获取 DI 容器
*/
getContainer(): any;
}
/**
* HTTP 适配器接口
*/
export interface HttpAdapter {
listen(port: number, callback?: () => void): void;
close(): void;
getType(): string;
getInstance(): any;
}
//# sourceMappingURL=application.d.ts.map