tryError Documentation

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

```ts type ErrorMiddleware<T, E> = (result, next) => TryResult<T, E>; ``` Defined in: [middleware.ts:13](https://github.com/oconnorjohnson/try-error/blob/e3ae0308069a4fba073f4543d527ad76373db795/src/middleware.ts#L13) Middleware function signature

tryError API Documentation v0.0.1-alpha.1


tryError API Documentation / ErrorMiddleware

Type Alias: ErrorMiddleware()<T, E>

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

Defined in: middleware.ts:13

Middleware function signature

Type Parameters

T

T = any

E

E extends TryError = TryError

Parameters

result

TryResult<T, E>

next

() => TryResult<T, E>

Returns

TryResult<T, E>