GetContextValue

View Source

Summary

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

Signature

type GetContextValue<context, key> =
  context extends RequestContext<any, infer entries extends ContextEntries>
    ? ResolveContextEntryValue<entries, key, ContextValue<key>>
    : ContextValue<key>;