[英]How do i annotate React.forwardRef with jsdoc comments so that intellisense can show up for the underlying component?
[英]How can i make this comments with jsdoc
我如何使用jsdoc正確發表此評論。 有任何想法嗎???
/**********************
* @variables : global variables
***************************/
var map; // this var handle the object related with the map
var image;
var currentMark;
只需在變量之前添加文檔注釋:
/** this var handle the object related with the map */
var map;
/** An image */
var image;
// Undocumented variables will not show up
var currentMark;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.