var f : any = function (...args) { console.log("New: " + original.name); return new original(...args); }