'JSDoc nested types not showing on VSCode
I have this code:
typedefs.js
/**
* A UUID.
* Example: 123e4567-e89b-12d3-a456-426655540000
*
* @typedef {string} uuid
*/
/**
* @typedef {Object} Notification
*
* @property {uuid} id - The notification ID.
*/
code.js
/**
* @typedef {import('../typedefs').Notification} Notification
*/
/**
* @returns {Notification} - An array of notifications.
*/
export const getNotification = () => {
};
When I hover on {Notification}
it shows:
But I expected it to show
uuid
instead of string
.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|