is MethodStatic
return whether this Entity class is a subclass of another Entity class
is(otherClass: undefined): boolean
note the subclass-ness is checked according to JavaScript inheritance, to check the underlying raw EC class's inheritance, you can use ECClass.is
note this should have a type of is<T extends typeof Entity>(otherClass: T): this is T
but can't because of
typescript's restriction on the this
type in static methods
Parameter | Type | Description |
---|---|---|
otherClass | undefined |
Returns - boolean
Defined in
- backend/src/Entity.ts Line 96
Last Updated: 30 November, 2023