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 undefined>(className: string, defaultClass: T extends undefined | undefined): Promise<T extends undefined | 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 undefined | undefined | If no base class of the className is registered, return this value. |
Defined in
Last Updated: 05 June, 2020