mirror of
https://github.com/honojs/hono.git
synced 2024-11-29 17:46:30 +01:00
26 lines
747 B
TypeScript
26 lines
747 B
TypeScript
import { Hono } from './hono.ts'
|
|
|
|
declare global {
|
|
class ExtendableEvent extends Event {
|
|
constructor(type: string, init?: EventInit)
|
|
waitUntil(promise: Promise<any>): void
|
|
}
|
|
abstract class FetchEvent extends ExtendableEvent {
|
|
readonly request: Request
|
|
respondWith(promise: Response | Promise<Response>): void
|
|
passThroughOnException(): void
|
|
}
|
|
interface ExecutionContext {
|
|
waitUntil(promise: Promise<any>): void
|
|
passThroughOnException(): void
|
|
}
|
|
}
|
|
|
|
export type { Handler, Next, ContextVariableMap } from './hono.ts'
|
|
export type { Context } from './context.ts'
|
|
export { Hono }
|
|
|
|
// Router
|
|
export { RegExpRouter } from './router/reg-exp-router/index.ts'
|
|
export { TrieRouter } from './router/trie-router/index.ts'
|