2 ms·
Programmatically yes: https://github.com/microsoft/TypeScript/blob/28cd1fbd13b8d09259e7a7086aa258c0221c38ac/src/services/codefixes/annotateWithTypeFromJSDoc.ts#
by alexlur 3y ago
Programmatically yes: https://github.com/microsoft/TypeScript/blob/28cd1fbd13b8d09259e7a7086aa258c0221c38ac/src/services/codefixes/annotateWithTypeFromJSDoc.ts#L53 https://github.com/microsoft/TypeScript/blob/28cd1fbd13b8d09...
You just need to call this from somewhere like ts-morph.