jsdoc对标识符对象的引用

请考虑以下文件:

const myValue = 32;

module.exports = myValue;
const myFunction = (name) => `Hello ${name}`;

module.exports = myFunction;
class MyClass {
   sayMyName(name) {
     return `Hello ${name}`;
   }
}

module.exports = MyClass;

还有更多,我使用InversifyJSawilix之类的IOC东西来获取此模块。

// in another file as awilix example:
const myClassInstance = container.resolve('MyClass');

这个jsdoc与我上面定义的一样吗?

是否有对特殊值/函数/方法的引用?

tongxin8855 回答:jsdoc对标识符对象的引用

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3110593.html

大家都在问