是否可以从Typescript文件生成JSDoc?

时间:2020-03-28 10:00:57

标签: typescript jsdoc

我有TS文件,我想从这些文件中生成JSDoc。

例如:

编译此

// index.ts

function foo(bar: number): boolean {
  return bar > 10;
} 

对此

// index.js

/**
* @param bar {number}
* @returns {boolean}
*/
function foo(bar: number): boolean {
  return bar > 10;
} 

0 个答案:

没有答案