I've defined a custom type via @typedef
:
/**
* @typedef {Object} FILE_DATA
* @property {NodeJS.ReadableStream} fileStream
* @property {string} fileUUID
*/
Then I apply this custom type in a method signature:
/**
* Upload file to Dropbox
*
* @param {FILE_DATA} fileData - file data to be stored
* @returns {Promise<Readonly<{fileName: string, folderUUID: string, isSucceeded: boolean, message: string}>>} file upload result
*/
export const fileUpload = async function fileUpload(fileData) {…}
When I generate a JSDoc, I expect that fileUpload()
documentation will contain a custom type, in fact the only documentation about fileUpload()
is:
(static, constant) fileUpload
Upload file to Dropbox
How to make JSDoc showing more details about fileUpload()
?