Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ import type http from 'http'
import type { IncomingMessage, ServerResponse, Handler, Middleware } from './types'
import { callHandler } from './handler'

export interface EventContext extends Record<string, any> {}
Comment thread
pi0 marked this conversation as resolved.
Outdated

export interface H3Event {
'__is_event__': true
event: H3Event
req: IncomingMessage
res: ServerResponse
context: Record<string, any>
context: EventContext
Comment thread
pi0 marked this conversation as resolved.
Outdated
}

export type CompatibilityEvent = H3Event | IncomingMessage
Expand Down