tryError Documentation

Type Alias: ContextualMiddleware()\<T, E\>
Type

```ts type ContextualMiddleware<T, E> = (result, context, next) => TryResult<T, E>; ``` Defined in: [middleware.ts:37](https://github.com/oconnorjohnson/try-error/blob/e3ae0308069a4fba073f4543d527ad76373db795/src/middleware.ts#L37) Enhanced middleware with context support

tryError API Documentation v0.0.1-alpha.1


tryError API Documentation / ContextualMiddleware

Type Alias: ContextualMiddleware()<T, E>

type ContextualMiddleware<T, E> = (result, context, next) => TryResult<T, E>;

Defined in: middleware.ts:37

Enhanced middleware with context support

Type Parameters

T

T = any

E

E extends TryError = TryError

Parameters

result

TryResult<T, E>

context

MiddlewareContext

next

() => TryResult<T, E>

Returns

TryResult<T, E>