EntityForType
@zylem/game-lib / entity / EntityForType
Type Alias: EntityForType<T>
EntityForType<
T> =Textends keyofEntityTypeMap?EntityTypeMap[T] :BaseNode
Defined in: packages/game-lib/src/lib/types/entity-type-map.ts:48
Type helper: if T is a known type symbol, return the mapped entity type. Otherwise return BaseNode.
Type Parameters
T
T