Skip to content

MiddlewareContext

Defined in: packages/hoppity/src/types.ts:85

Context object passed to middleware functions for sharing state. This allows middleware to communicate and share information with downstream middleware.

MiddlewareContext

data: Record<string, any>

Defined in: packages/hoppity/src/types.ts:86

Arbitrary data that can be set and read by middleware


logger: Logger

Defined in: packages/hoppity/src/types.ts:88

Logger instance for middleware to use


middlewareNames: string[]

Defined in: packages/hoppity/src/types.ts:87

Names of middleware that have already executed


optional serviceName: string

Defined in: packages/hoppity/src/types.ts:89

The service name, populated by ServiceBuilder