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

Cannot use Union on @throw #204

Open
Otto-AA opened this issue Nov 23, 2019 · 1 comment
Open

Cannot use Union on @throw #204

Otto-AA opened this issue Nov 23, 2019 · 1 comment
Labels
template Requires a change to a dmd partial/helper

Comments

@Otto-AA
Copy link

Otto-AA commented Nov 23, 2019

While I can use a Union type for @param it doesn't work for @throws.

Example:

/**
 * @param {string | number} x
 * @throws {string | number}
 */
function throwMe(x) {
  throw x
}

Output:

throwMe(x)

Kind: global function
Throws:

  • stringnumber
Param Type
x string | number
@75lb
Copy link
Member

75lb commented Mar 3, 2021

Does this work correctly in jsdoc directly?

@75lb 75lb added the template Requires a change to a dmd partial/helper label Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
template Requires a change to a dmd partial/helper
Development

No branches or pull requests

2 participants