Как добавить описание к свойствам объекта
Я определил новый тип YSDK, используя этот синтаксис
/**
* @typedef {{
* environment: {
* app: {
* id: string
* },
* browser: {
* lang: string,
* },
* i18n: {
* lang: string,
* tld: string
* },
* payload?: string
* }
* }} YSDK
*/
Я знаю, что могу добавить описание, если буду использовать этот синтаксис
/**
* The complete Triforce, or one or more components of the Triforce.
* @typedef {Object} WishGranter~Triforce
* @property {boolean} hasCourage - Indicates whether the Courage component is present.
* @property {boolean} hasPower - Indicates whether the Power component is present.
* @property {boolean} hasWisdom - Indicates whether the Wisdom component is present.
*/
Есть ли способ добавить описание к свойствам объекта в том виде, в котором я их определил?