• Creates a proxy function on the target which internally will call the source version with all arguments passed to the target method.

    Type Parameters

    • T
    • S

    Parameters

    • target: T

      The target object to be assigned with the source properties and functions

    • name: string

      The function name that will be added on the target

    • source: S | (() => S)

      The source object which will be assigned / called by setting / calling the targets proxies

    • theFunc: keyof S

      The function name on the source that will be proxied on the target

    • OptionaloverwriteTarget: boolean

      If false this will not replace any pre-existing name otherwise (the default) it will overwrite any existing name

    Returns void