You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure these boxes are checked before submitting your issue - thank you!
(If your issue is neither a both bug nor a request, please write in a free style)
I have a function that ESDoc tries to infer the data type it returns, but it does so incorrectly.
Input data for reproducing
Codes
functionexample(args){consterrorMessage={getargs(){return'args should be valid';}};if(args==null){throwError(errorMessage.args);}// ....}
Output data
It produces documentation with the wrong data type as the return value from the example function. The example function as you can see above, returns undefined
but ESDocs says it returns string because it's inferring it wrongly.
Your environment
OS type and version: Mac
Node.js version: v10.16.3
ESDoc version: v1.1.0
The text was updated successfully, but these errors were encountered:
Make sure these boxes are checked before submitting your issue - thank you!
(If your issue is neither a both bug nor a request, please write in a free style)
Short summary of your issue
I have a function that ESDoc tries to infer the data type it returns, but it does so incorrectly.
Input data for reproducing
Codes
Output data
It produces documentation with the wrong data type as the return value from the example function. The example function as you can see above, returns
undefined
but ESDocs says it returns
string
because it's inferring it wrongly.Your environment
The text was updated successfully, but these errors were encountered: