У меня есть определение типа, которое выглядит так:
export type Directions = 'UP' | 'DOWN' | 'LEFT' | 'RIGHT';
export type LookAt = {
direction: Directions;
};
И автозаполнение выглядит так:
Но я хочуЧтобы добавить описание к каждому свойству:
export type Directions =
/**
* By looking up the item will be automatically attached to the top
*/
| 'UP'
/**
* By looking down the item will be automatically attached to the bottom
*/
| 'DOWN'
/**
* By looking left the item will be automatically attached to the left
*/
| 'LEFT'
/**
* By looking right the item will be automatically attached to the right
*/
| 'RIGHT';
Но при автозаполнении не отображается описание элемента, только имя свойства
Как добавить описание ситуации такого рода?