My current situation involves the following code snippet:
Object.prototype.custom = function() {
return this
}
Everything runs smoothly in JavaScript, however when I transfer it to TypeScript, an error surfaces:
Property 'custom' does not exist on type 'Object'.ts(2339)
Is there a way to maneuver around or address this issue?