Expanding on the insights shared by @Ronan Quillevere and @ffxsam,
Ronan's method demonstrates how information can be displayed in VSCode when hovering over the interface, as highlighted in his comments.
However, in the example below where that interface is utilized, hovering over the destructured variables in the final line does not showcase the documentation from the member/field tag, but rather from the comment within the interface, as suggested by ffxsam.
/**
* Description of the interface
*
* @interface EditDialogField
* @member {string} label - Used for a specific purpose
* @field {string} prop - Used for another purpose
*/
interface EditDialogField {
/** Documentation within the interface */
label: string;
prop: string;
required?: boolean;
type: 'input';
}
const dialog: EditDialogField = { label: 'label', prop: 'prop', type: 'input' };
const { label, prop } = dialog;
These screenshots provide a clearer illustration of this behavior in VSCode.
https://i.sstatic.net/G74wj.png
https://i.sstatic.net/35pPL.png
While it may currently seem challenging to find a common solution to address this issue, achieving uniformity in this aspect would certainly be beneficial.