I am having a problem in vscode where I can not see the defined jsdocs in a js class when importing that class in another js file. Not when hovering or using the vscode shortcuts.
./src/person/index.js
/**
* This is a person class.
*/
export default class Person{
/**
* Person constructor
* @param {string} Name of the person
* @param {number} Age of the person
*/
constructor(name, age){
this.name = name;
this.age = age;
}
}
./src/index.js
import { Person } from './src/person/index.js'
const jim = new Person(jim, 88) // jsdoc is not recognized