UNPKG

object-wrapper

Version:

Wraps all of an object's functions in a wrapper of your choosing.

3 lines (2 loc) 247 B
import { IFunctionInfo } from "./interfaces"; export default function wrapObject(obj: any, wrapper: (functionInfo: IFunctionInfo, args: IArguments, isConstructor: boolean, callingFcn: Function) => any, objName?: string, modifyObj?: boolean): any;