【发布时间】:2020-08-25 13:59:02
【问题描述】:
npm 模块@tensorflow/tfjs 有声明文件,其注释结构如下:
/**
* Creates a new array with randomized indicies to a given quantity.
*
* ```js
* const randomTen = tf.util.createShuffledIndices(10);
* console.log(randomTen);
* ```
*
* @param number Quantity of how many shuffled indicies to create.
*/
/** @doc {heading: 'Util', namespace: 'util'} */
export declare function createShuffledIndices(n: number): Uint32Array;
这导致我的 vs 代码的智能感知显示如下:
文档看起来像 jsdoc,只是关闭并重新打开评论可能会破坏它。
由于 tensorflowjs 破坏文档的可能性极小,我可能只是犯了一些非常简单的错误。这很可能是一个骗局。很遗憾,我的所有搜索都失败了。
【问题讨论】:
-
As it's extremely unlikely, that tensorflowjs has broken documentation每个人都会犯错误????
标签: typescript visual-studio-code intellisense jsdoc tensorflow.js