Properly Adding Methods to Tagged Classes in JavaScript
What would be correct way to do class gymnastics with tagged classes? Let’s say I have a wrapper function that calls TaggedClass under the hood, to create multiple classes sharing some properties. I’d like to add methods to class I create too.
Tried adding new prop directly on prototype - couldn’t type it correctly
Tried adding new prop directly on prototype - couldn’t type it correctly
