Files
SnowLuma/.pnpm-store/v11/files/22/2fa890d706261febd6df36c5e1034095f2455190a39af8888a133a11b380380e133a21459ad31e4794c3e3b52c52980fa3d37fd3a8c58bc73986109caa8fb1
TanTan 2a69b23b47
Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Skipped
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

29 lines
951 B
Plaintext

import { HonoBase as Hono$1 } from "./hono-base.js";
import { RegExpRouter } from "./router/reg-exp-router/router.js";
import "./router/reg-exp-router/index.js";
import { SmartRouter } from "./router/smart-router/router.js";
import { TrieRouter } from "./router/trie-router/router.js";
import "./router/trie-router/index.js";
//#region src/hono.ts
/**
* The Hono class extends the functionality of the HonoBase class.
* It sets up routing and allows for custom options to be passed.
*
* @template E - The environment type.
* @template S - The schema type.
* @template BasePath - The base path type.
*/
var Hono = class extends Hono$1 {
/**
* Creates an instance of the Hono class.
*
* @param options - Optional configuration options for the Hono instance.
*/
constructor(options = {}) {
super(options);
this.router = options.router ?? new SmartRouter({ routers: [new RegExpRouter(), new TrieRouter()] });
}
};
//#endregion
export { Hono };