I have 2 objects called User in my nodejs project but in different folders (one is the main User object and one is a slimmed version for firing back to the client over socketio).
Is there a way to incorporate the directory structure into the JSDocs or some other equivalent to namespaces?
This is invalid:
/** @type {dataObjs/User} */
const dataUser = new DataUserFactory();
When I remove the dataObjs/ part (which is the folder my secondary User object lives in) it merges the primary and secondary User objects together - I would prefer to tell JSDocs which one I'm referring to so it only shows properties/methods from the correct object. Cheers!
via Force Hero
No comments:
Post a Comment