all
@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:
- Retrieving the keys from the internal entities registry
- Returning them as an array of entity names
- 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');
}