Files
stream.ui/src/server/common/adapter/hono/hono.impl.ts
2026-01-12 02:08:47 +07:00

19 lines
631 B
TypeScript

import type { HonoRequest } from "hono/request";
import type { ServeStaticOptions } from "hono/serve-static";
export type { InternalHonoRes as HonoResponse } from "./_util.ts";
export type { HonoRequest } from "hono/request";
export interface HonoApplicationExtra {
useBodyParser(contentType: string, parser: HonoBodyParser): void;
/**
* Sets a base directory for public assets.
* Example `app.useStaticAssets('public', { root: '/' })`
* @returns {this}
*/
useStaticAssets(path: string, options: ServeStaticOptions): Promise<this>;
}
export type HonoBodyParser = (context: HonoRequest) => Promise<any> | any;