import { HonoBase } from '../hono-base.ts' import type { HonoOptions } from '../hono-base.ts' import { LinearRouter } from '../router/linear-router/index.ts' import { SmartRouter } from '../router/smart-router/index.ts' import { TrieRouter } from '../router/trie-router/index.ts' import type { Env, Schema } from '../types.ts' export class Hono< E extends Env = Env, S extends Schema = {}, BasePath extends string = '/' > extends HonoBase { constructor(options: HonoOptions = {}) { super(options) this.router = new SmartRouter({ routers: [new LinearRouter(), new TrieRouter()], }) } }