2022-07-02 08:09:45 +02:00
|
|
|
import { Hono } from './hono.ts'
|
|
|
|
|
|
|
|
declare global {
|
2022-07-17 11:36:42 +02:00
|
|
|
class ExtendableEvent extends Event {
|
|
|
|
constructor(type: string, init?: EventInit)
|
|
|
|
waitUntil(promise: Promise<any>): void
|
|
|
|
}
|
|
|
|
abstract class FetchEvent extends ExtendableEvent {
|
2022-07-02 08:09:45 +02:00
|
|
|
readonly request: Request
|
2022-07-17 11:36:42 +02:00
|
|
|
respondWith(promise: Response | Promise<Response>): void
|
|
|
|
passThroughOnException(): void
|
2022-07-02 08:09:45 +02:00
|
|
|
}
|
|
|
|
interface ExecutionContext {
|
|
|
|
waitUntil(promise: Promise<any>): void
|
|
|
|
passThroughOnException(): void
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-31 16:07:56 +01:00
|
|
|
export type { Next, ContextVariableMap, MiddlewareHandler } from './types.ts'
|
|
|
|
import type { CustomHandler } from './types.ts'
|
|
|
|
export type { CustomHandler as Handler }
|
2022-07-10 16:44:23 +02:00
|
|
|
export type { Context } from './context.ts'
|
2022-07-02 08:09:45 +02:00
|
|
|
export { Hono }
|
|
|
|
|
|
|
|
// Router
|
|
|
|
export { RegExpRouter } from './router/reg-exp-router/index.ts'
|
|
|
|
export { TrieRouter } from './router/trie-router/index.ts'
|
2022-10-24 16:22:05 +02:00
|
|
|
export { StaticRouter } from './router/static-router/index.ts'
|
|
|
|
export { SmartRouter } from './router/smart-router/index.ts'
|
2022-10-24 16:59:46 +02:00
|
|
|
|
|
|
|
// Validator
|
|
|
|
export type { Validator } from './validator/validator.ts'
|