I'm trying to add a method to an object, like so:
Y.prototype.x = function(){return 'x'}
And getting:
Property 'x' does not exist on type 'Y'
After googling and searching, I am still clueless tbh.
I'm trying to add a method to an object, like so:
Y.prototype.x = function(){return 'x'}
And getting:
Property 'x' does not exist on type 'Y'
After googling and searching, I am still clueless tbh.