neogen icon indicating copy to clipboard operation
neogen copied to clipboard

function doc generate issue in js, ts

Open KevinNitroG opened this issue 5 months ago • 0 comments

There are 3 ways (I guess) to declare a function in javascript, and typescript. But I see that only the first way below works (Neogen or Neogen func), the rest don't, even if my cursor is in the "function" keyword or the params. I wonder whether it's a bug or not 😶.

1

/**
 * @param a - [TODO:description]
 * @param b - [TODO:description]
 * @returns [TODO:return]
 */
function sum(a, b) {
  return a + b;
}

2

/** [TODO:description] */
const sum = function (a, b) {
  return a + b;
};

3

/** [TODO:description] */
const sum = (a, b) => {
  return a + b;
};

Edit: Sorry the third way works too.

KevinNitroG avatar Sep 03 '24 10:09 KevinNitroG