JSDOC嵌套类型未在VSCODE上显示
我有此代码:
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 = () => {
};
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
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论