Skip to main content

core.fhircasteventcontext

Home > @medplum/core > FhircastEventContext

FhircastEventContext type

Signature:

export type FhircastEventContext<EventName extends FhircastEventName = FhircastEventName, K extends FhircastEventContextKey<EventName> = FhircastEventContextKey<EventName>> = FhircastEventContextMap<EventName>[K] extends infer _Ev extends FhircastEventContextDetails ? _Ev['isArray'] extends true ? FhircastMultiResourceContext<EventName, K> : FhircastSingleResourceContext<EventName, K> : never;

References: FhircastEventName, FhircastEventContextKey, FhircastEventContextMap, FhircastEventContextDetails, FhircastMultiResourceContext, FhircastSingleResourceContext