mirror of
https://github.com/honojs/hono.git
synced 2024-12-01 11:51:01 +01:00
6034dd7f7f
* fix(types): remove type-errors for routes * denoify * fixed the client and the presets * rename
15 lines
434 B
TypeScript
15 lines
434 B
TypeScript
import { HonoBase } from '../hono-base.ts'
|
|
import { PatternRouter } from '../router/pattern-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<E, S, BasePath> {
|
|
constructor(init: Partial<Pick<Hono, 'getPath'> & { strict: boolean }> = {}) {
|
|
super(init)
|
|
this.router = new PatternRouter()
|
|
}
|
|
}
|