I know that the TypeScript language is used to compile files in JavaScript. But I wonder if there is any tool that makes it possible to do the reverse.
Is there any way to convert a JavaScript file to a TypeScript structure, something automatic?
For me it would be much more interesting to be able to work from the TypeScript language, to refactor a file, and to improve the logic from this, since the version we have here is very disorganized, and has a very complex and messy structure, I believe which can be merged and improved by TypeScript, since TypeScript is much more flexible in this sense.
I'm having to recreate everything manually in TypeScript, but I spend a lot of time having to check each item, and every piece of code. I would like to save effort and work from the old converted version to a strongly typed language such as TypeScript.