tiny.ts
This file
Path
src/preset/tiny.ts
20 lines · 534 bytes · TypeScript
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than f0b094d point at it.
Merge commit from forkYusuke Wadabefore adoptionf0b094d
lines 1–20why, one step back1/**2 * @module3 * The preset that uses `PatternRouter`.4 */56import { HonoBase } from '../hono-base'7import type { HonoOptions } from '../hono-base'8import { PatternRouter } from '../router/pattern-router'9import type { BlankEnv, BlankSchema, Env, Schema } from '../types'1011export class Hono<12 E extends Env = BlankEnv,13 S extends Schema = BlankSchema,14 BasePath extends string = '/',15> extends HonoBase<E, S, BasePath> {16 constructor(options: HonoOptions<E> = {}) {17 super(options)18 this.router = new PatternRouter()19 }20}