getName
@quik/entity / EntityStore / getName
Function: getName()
getName(
ctor):string
Defined in: entity/src/store.ts:58
Alias for getEntityName function that returns the entity name from a constructor or string.
Parameters
ctor
string | Constructor
Entity constructor or name string
Returns
string
Example
// From constructor
const name = getName(UserEntity); // Returns 'User'
// From string
const name = getName('User'); // Returns 'User'
See
getEntityName For the underlying implementation