0
0
mirror of https://github.com/honojs/hono.git synced 2024-12-01 10:51:01 +00:00
hono/deno_dist/preset/tiny.ts
Yusuke Wada 4fde03e22f
fix(preset): fix constructor args (#1113)
* fix(preset): fix constructor args

* chore: denoify
2023-05-18 14:18:55 +09:00

15 lines
411 B
TypeScript

import { HonoBase } from '../hono-base.ts'
import { PatternRouter } from '../router/pattern-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(init: Partial<Pick<Hono, 'getPath'> & { strict: boolean }> = {}) {
super(init)
this.router = new PatternRouter()
}
}