qcobjects 2.5.102-beta → 2.5.104-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/Class.ts CHANGED
@@ -232,7 +232,7 @@ export const Class: TClass = (name?: string, _type?: unknown, _definition?: unkn
232
232
 
233
233
  hierarchy(): any {
234
234
  const __instance__ = this;
235
- return this.getClass().hierarchy(__instance__);
235
+ return this.getClass()?.hierarchy(__instance__);
236
236
  }
237
237
 
238
238
 
@@ -157,7 +157,7 @@ export class InheritClass implements IInheritClass {
157
157
 
158
158
  hierarchy(): any {
159
159
  const __instance__ = this;
160
- return this.getClass().hierarchy(__instance__);
160
+ return (this.constructor as typeof InheritClass).hierarchy(__instance__);
161
161
  }
162
162
 
163
163