UNPKG

dinoloop-es8

Version:

A lightweight REST API Library for building scalable Node.js server-side applications powered by Typescript

26 lines (25 loc) 854 B
/** * Wrapper methods for native js Object * Just to make sure not to inject native js functions into the API * This increases to support older versions that dont support the latest Object api */ export declare abstract class ObjectUtility { private static _replaceObjectReferences(obj, objToReplace, className); /** * Works exactly => Object.create(obj) */ static create(obj: any): any; /** * Works exactly => Object.keys(obj) */ static keys(obj: any): string[]; /** * Works exactly => Object.getPrototypeOf(obj) */ static getPrototypeOf(obj: any): any; /** * Works exactly => Object.getOwnPropertyNames(obj) */ static getOwnPropertyNames(obj: any): any; static replaceObjectReferences(obj: any, objToReplace: any, className: Function): any; }