Given the snippet below:
interface Object { foo(): void; } Object.prototype.foo = function () { console.log("bar"); } let obj = {}; obj.foo(