3 ms·
Is there some command you can run to rewrite all the JSDoc as actual TypeScript?
by antihero 3y ago
Is there some command you can run to rewrite all the JSDoc as actual TypeScript?
- alexlur 3y agoProgrammatically 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.