mirror of
https://github.com/honojs/hono.git
synced 2024-12-01 10:51:01 +00:00
ccc4308871
* fix(types): set `/` for generics `basePath` * denoify * fix `MergePath` * tweak * denoify
15 lines
341 B
TypeScript
15 lines
341 B
TypeScript
import { HonoBase } from '../hono-base.ts'
|
|
import { LinearRouter } from '../router/linear-router/index.ts'
|
|
import type { Env } from '../types.ts'
|
|
|
|
export class Hono<E extends Env = Env, S = {}, BasePath extends string = '/'> extends HonoBase<
|
|
E,
|
|
S,
|
|
BasePath
|
|
> {
|
|
constructor() {
|
|
super()
|
|
this.router = new LinearRouter()
|
|
}
|
|
}
|