fromConstructor
@quik/entity / EntityStore / fromConstructor
Function: fromConstructor()
fromConstructor<
TEntity>(constructor):Constructor<TEntity>
Defined in: entity/src/store.ts:324
Resolve a constructor reference that may be a name, a callback, or the constructor itself.
Type Parameters
TEntity
TEntity extends QEntity
Parameters
constructor
string | Constructor | (() => Constructor)
Entity constructor reference as string, function or constructor
Returns
Constructor<TEntity>