qcobjects
Version:
QCObjects is an Open-source framework that empowers full-stack developers to make micro-services and micro-frontends into an N-Tier architecture.
20 lines (17 loc) • 644 B
text/typescript
import { InheritClass } from "./InheritClass";
export const isQCObjects_Object = function (_:any):boolean {
return (!!((typeof _ === "object" &&
Object.hasOwn(_, "__classType") &&
(!!_.__instanceID) &&
Object.hasOwn(_, "__definition") &&
typeof _.__definition !== "undefined"
))) || _ instanceof InheritClass;
};
export const isQCObjects_Class = function (_:any):boolean {
return (!!((typeof _ === "function" &&
(!_.__instanceID) &&
(!!_.__definition) &&
typeof _.__definition !== "undefined" &&
!!_.__definition.__classType
))) || _.prototype instanceof InheritClass;
};