-
-
Notifications
You must be signed in to change notification settings - Fork 446
/
mod.ts
29 lines (26 loc) · 1004 Bytes
/
mod.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { Hono } from './hono.ts'
declare global {
class ExtendableEvent extends Event {
constructor(type: string, init?: EventInit)
waitUntil(promise: Promise<void>): void
}
abstract class FetchEvent extends ExtendableEvent {
readonly request: Request
respondWith(promise: Response | Promise<Response>): void
passThroughOnException(): void
}
interface ExecutionContext {
waitUntil(promise: Promise<void>): void
passThroughOnException(): void
}
}
export type { Next, MiddlewareHandler, ErrorHandler, NotFoundHandler } from './types.ts'
import type { CustomHandler } from './types.ts'
export type { CustomHandler as Handler }
export type { Context, ContextVariableMap } from './context.ts'
export { Hono }
// Router
export { RegExpRouter } from './router/reg-exp-router/index.ts'
export { TrieRouter } from './router/trie-router/index.ts'
export { StaticRouter } from './router/static-router/index.ts'
export { SmartRouter } from './router/smart-router/index.ts'