© 2026 Hedgehog Software, LLC
type Route = (ctx: Context) => Response<unknown> type Router = {[key: string]: Route | Router}
class MyRouter<T extends Router>{ routes: T constructor(r: T){ this.routes = r} }