export type ObjectType = (new (...args: any[]) => T); export function getObjectTypeName(objectType: ObjectType | Function | any): string { if (!objectType) return "null object"; if (objectType.name) return objectType.name; if (objectType.constructor && objectType.constructor.name) return objectType.constructor.name; return "unknown type"; }