V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
cl1107
V2EX  ›  Visual Studio Code

有支持 JSDoc 生成注释解构参数的 VSCode 插件吗?

  •  
  •   cl1107 · 2020-09-16 15:31:37 +08:00 · 2815 次点击
    这是一个创建于 1315 天前的主题,其中的信息可能已经有所发展或是发生改变。

    /**

    • Assign the project to an employee.
    • @param {Object} employee - The employee who is responsible for the project.
    • @param {string} employee.name - The name of the employee.
    • @param {string} employee.department - The employee's department. */

    Project.prototype.assign = function({ name, department }) { // ... };

    生成这样的注释,找了几个插件都不支持解构参数的注释。

    2 条回复    2022-09-05 21:58:06 +08:00
    lovedebug
        1
    lovedebug  
       2020-09-16 15:39:34 +08:00 via Android
    现在都大量使用 openapi 了吧
    cl1107
        2
    cl1107  
    OP
       2022-09-05 21:58:06 +08:00
    自从用了 ts ,也没这需求了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5357 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 07:05 · PVG 15:05 · LAX 00:05 · JFK 03:05
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.