Function proxyFunctions

  • Creates proxy functions 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

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

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

    • functionsToProxy: (keyof S)[]

      An array of function names that will be proxied on the target

    • Optional overwriteTarget: boolean

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

    Returns T

Generated using TypeDoc