Remix
Remix
remix/fetch-router · TypeView Source

ContextWithMiddleware

Summary

Resolves the request-context type produced by applying middleware to an existing context.

This is useful for router helpers and third-party libraries that need to describe the context available after a known middleware tuple runs.

Signature

type ContextWithMiddleware<context, middleware> = MiddlewareContext<
  middleware,
  context
>;