Skip to content

EntityTypeRegistry

Defined in: core/src/entity/entity.registry.ts:4

Registry of EntityTypes, keyed by id.

new EntityTypeRegistry(): EntityTypeRegistry;

EntityTypeRegistry

get(id):
| EntityType
| undefined;

Defined in: core/src/entity/entity.registry.ts:18

Returns the entity type with the given id, or undefined if none matches.

Parameter Type
id string

| EntityType | undefined


list(): EntityType[];

Defined in: core/src/entity/entity.registry.ts:15

Lists all registered entity types.

EntityType[]


register(...entityTypes): void;

Defined in: core/src/entity/entity.registry.ts:8

Registers one or more entity types, replacing any existing type with the same id.

Parameter Type
entityTypes EntityType[]

void