typescript-transformer-handbook
typescript-transformer-handbook copied to clipboard
Question: Can I use built-in typescript transformers?
I need to transform ES6 syntax into ES5 but keep types. So I need TypeScript ES6 to TypeScript ES5 transformer (not JS).
ts.transpile() strips all the types and essentially outputs JS (which is not what I need).
Can I use built-in typescript transformers to achieve this?