Skip to main content

all

@quik/entity


@quik/entity / EntityStore / all

Function: all()

all(): string[]

Defined in: entity/src/store.ts:85

Returns a list of all registered entity names in the store.

This function provides access to all available entities by:

  1. Retrieving the keys from the internal entities registry
  2. Returning them as an array of entity names
  3. Enabling entity discovery and introspection

Returns

string[]

Example

// Get all registered entities
const entities = EntityStore.all();
console.log(`There are ${entities.length} registered entities`);

// Check if a specific entity exists
if (entities.includes('User')) {
console.log('User entity is registered');
}

See

  • register For adding entities to the store
  • load For loading entities from files