-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Example code:
/**
* cool documentation here
*
* @returns {object} The data returned with an `access_token`.
*/
async function getAuthToken(
@aljones15 says:
JsDoc automatically marks aync functions async when creating documents so the promise is redundant here.
This is a very cool JsDoc feature, but since we have very few modules with actually generated JsDocs, I am personally much more likely to read the docs directly in the code.
Does anyone else prefer the explicit/redundant syntax?
* @returns {Promise<object>} The data returned with an `access_token`.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request