• Intercept the named functions for the target class / object

    Parameters

    • target: any

      The target object

    • funcNames: string[]

      The function names to intercept and call

    • callbacks: IInstrumentHooksCallbacks

      The callbacks to configure and call whenever the function is called

    • checkPrototype: boolean = true

      If the function doesn't exist on the target should it attempt to hook the prototype function

    • Optional checkParentProto: boolean

      If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype

    Returns IInstrumentHook[]

Generated using TypeDoc