私はES6プロジェクトにJSDocのを使用しようとしている、私は地図を返すよ:Javascript + JsDoc:mapのような新しいES6データ型を文書化するには?
/**
* Some documentation..
*
* @returns {undefined} <- This should be replaced
*/
function returningMap() {
const someMap = new Map();
someMap.set("key", {a, b, c});
return someMap;
}
私は@returns
でこれをドキュメント化する必要がありますどのように?
よくある質問hereです。
@returns {Map}? – Thomas
私はほとんど同じような問題があります。 https://stackoverflow.com/questions/38309123/jsdoc-with-and-immutable-js-datastructures-in-annotations –