(deprecation, func)
| 3241 | ts.noop; |
| 3242 | } |
| 3243 | function wrapFunction(deprecation, func) { |
| 3244 | return function () { |
| 3245 | deprecation(); |
| 3246 | return func.apply(this, arguments); |
| 3247 | }; |
| 3248 | } |
| 3249 | function deprecate(func, options) { |
| 3250 | var deprecation = createDeprecation(getFunctionName(func), options); |
| 3251 | return wrapFunction(deprecation, func); |