(realMethod: Function, mixins: Mixins)
| 116 | } |
| 117 | |
| 118 | function wrapFunction(realMethod: Function, mixins: Mixins): (...args: Array<any>) => any { |
| 119 | const fn = function (...args: Array<any>) { |
| 120 | wrapper.call(this, realMethod, mixins, ...args) |
| 121 | } |
| 122 | return fn |
| 123 | } |
| 124 | |
| 125 | export function patch(target: object, methodName: string, mixinMethod: Function): void { |
| 126 | const mixins = getMixins(target, methodName) |