remix/router · Type

View Source

GetContextValue

Summary

Resolves the value type returned by context.get(key) for the given context and key.

Signature

type GetContextValue<context, key> =
  context extends RequestContextTypes<any, any>
    ? ResolveEntryValue<RequestContextEntries<context>, key, ContextFallbackValue<key>>
    : ContextFallbackValue<key>