I have the following code:
Object.prototype.custom = function() {
return this
}
It works just fine in JavaScript, but when I put it in TypeScript, I get this error:
Property 'custom' does not exist on type 'Object'.ts(2339)
How can I bypass or solve this complaint?