Ich versuche JSDoc in meinem ES6 Projekt zu verwenden, ich bin der Rückkehr eine Karte:Javascript + JsDoc: Wie dokumentiert man neue ES6-Datentypen wie map?
/**
* Some documentation..
*
* @returns {undefined} <- This should be replaced
*/
function returningMap() {
const someMap = new Map();
someMap.set("key", {a, b, c});
return someMap;
}
Wie soll ich dieses Dokument mit @returns
?
Es gibt keine gute Antwort here.
@returns {Map}? – Thomas
Ich habe ein fast ähnliches Problem. https://stackoverflow.com/questions/38309123/jsdoc-with-and-immutable-js-datastructures-in-annotations –