Function addMethod

  • thisの型参照を残しながら任意のメソッドを拡張する Foo.prototype[methodName] = function (){...}とほぼ同等

    Type Parameters

    • T

    Parameters

    • obj: T
    • prop: string
    • methodFunc: ((this: T, ...args: any) => any)
        • (this: T, ...args: any): any
        • Parameters

          • this: T
          • Rest ...args: any

          Returns any

    Returns void

Generated using TypeDoc