小编r-g*_*gee的帖子

VS code 可以自动生成带有 typescript 类型的 jsdoc 吗?

如果我有这样的功能:

const function = (param: string) => {
 // ...
}
Run Code Online (Sandbox Code Playgroud)

现在在 VS Code 中,如果我开始在上面输入 /** 以便生成文档,它会给出以下内容:

/**
 *
 * @param param
 */
const function = (param: string) => {
 // ...
}
Run Code Online (Sandbox Code Playgroud)

但我希望它也能从打字稿信息自动生成类型,如下所示:

/**
 *
 * @param {string} param
 */
const function = (param: string) => {
 // ...
}
Run Code Online (Sandbox Code Playgroud)

这可能吗?

jsdoc typescript

12
推荐指数
1
解决办法
465
查看次数

标签 统计

jsdoc ×1

typescript ×1