Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function doc generate issue in js, ts #203

Open
KevinNitroG opened this issue Sep 3, 2024 · 0 comments
Open

function doc generate issue in js, ts #203

KevinNitroG opened this issue Sep 3, 2024 · 0 comments

Comments

@KevinNitroG
Copy link

KevinNitroG commented Sep 3, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant