Skip to main content

Type Alias: ContextUnion<Context, New>

ContextUnion<Context, New> = Omit<Context, keyof Omit<New, keyof MutableMapContext<MapSystemContext>>> & Omit<New, keyof MutableMapContext<MapSystemContext>>

Defined in: src/sdk/components/mapsystem/MapSystemTypes.ts:56

Adds all properties from a new context record to an existing record. Properties with keys found in the base MapSystemContext will be ignored. properties from the new record will overwrite the ones in the existing record if there are key collisions.

Type Parameters

Type Parameter
Context
New extends ContextRecord