findClassFor Method

Find the first registered base class of the given EntityState className. This class will "handle" the State for the supplied className.

findClassFor<T extends EntityState>(className: string, defaultClass: T extends EntityState | undefined): Promise<T extends EntityState | undefined>

note this method is async since it may have to query the server to get the class hierarchy.

Parameter Type Description
className string The full name of the class of interest.
defaultClass T extends EntityState | undefined If no base class of the className is registered, return this value.

Defined in

Last Updated: 13 October, 2019