In my library I am extending types Database and Transaction with the same method query defined in just one place.
If I try to use @memberof Database and @memberof Transaction, the latter overrides the former.
What is the correct way in jsdoc to indicate for a function that it represents a method in two different classes?
                        
I would do it like this:
It doesn't necessary matter that
Interfaceisn't defined anywhere in the code as long as no one else wants to implementInterface. If you think they might, then make and extend a base class instead (using prototype inheritance or ES6 classes), and document accordingly.