Bets practice for jsdoc typedefs for a heavily extended “Class”
I have a “class” (I’m actually using a plain object and Object.create()
to create instances, but I’d happily change) which has a few methods defined explicitly in the class expression. But it also has a lot of utility methods which are added by means of some helper functions which wrap calls to the previously defined methods, but with some options preset. Here is a simplified example: