i extended function prototype but typescript doesn\'t recognize it.
Function.prototype.proc = function() {
var args, target, v;
var __slice = [].slice;
There is a Function interface in the standard typescript lib which declares the members of Function objects. You will need to declare proc as a member of that interface with your own add on like the following:
interface Function {
proc(...args: any[]): any;
}
This interface will need to be referenced from anywhere you intend to use 'proc'.