i extended function prototype but typescript doesn\'t recognize it.
Function.prototype.proc = function() { var args, target, v; var __slice = [].slice;
Like this:
declare global { interface Function { proc() : any; } }
Without 'declare global' it doesn't work.
That's how module augmentation works in recent TypeScript versions. Check out the documentation and scroll down to the Module augmentation section.
Module augmentation