Can VS code auto generate jsdoc with typescript types?

Viewed 107

If I have some function like this

const function = (param: string) => {
 // ...
}

Now in VS code if I start typing /** above so that it generates the docs, it gives this

/**
 *
 * @param param
 */
const function = (param: string) => {
 // ...
}

But I want it to also automatically generate the type from the typescript information, like this

/**
 *
 * @param {string} param
 */
const function = (param: string) => {
 // ...
}

Is this possilbe?

0 Answers
Related