interface Middleware { onError?(context): Promise<void | Response>; post?(context): Promise<void | Response>; pre?(context): Promise<void | FetchParams>; } Methods
Optional
onError
- onError(context): Promise<void | Response>
Returns Promise<void | Response>
Optional
post
- post(context): Promise<void | Response>
Returns Promise<void | Response>
Optional
pre
- pre(context): Promise<void | FetchParams>
Returns Promise<void | FetchParams>