Ts-migrate: tool to automatically migrate JavaScript projects to TS
1–10 of 28 posts
Re: Ts-migrate: tool to automatically migrate JavaScript projects to TS
#2https://medium.com/airbnb-engineering/ts-migrate-a-tool-for-...
Re: Ts-migrate: tool to automatically migrate JavaScript projects to TS
#3Re: Ts-migrate: tool to automatically migrate JavaScript projects to TS
#4I thought the tool to automatically migrate JS to TS was tsc --init and then set the flag to include js files.
Re: Ts-migrate: tool to automatically migrate JavaScript projects to TS
#5Re: Ts-migrate: tool to automatically migrate JavaScript projects to TS
#6I thought the tool to automatically migrate JS to TS was tsc --init and then set the flag to include js files.
Re: Ts-migrate: tool to automatically migrate JavaScript projects to TS
#7Re: Ts-migrate: tool to automatically migrate JavaScript projects to TS
#8Yep that’s how I’d do it too. I wrote a simpler version when doing a tsc upgrade to resolve a whole bunch of errors. It parses the tsc errors and does simple string replaces.
Has anyone played with the tool to report how good it is?
I remember v8 did an experiment back in the day where it would run code and profile the input parameters and output of functions and automatically generate typescript types.
Re: Ts-migrate: tool to automatically migrate JavaScript projects to TS
#9If I understand correctly, they convert the js file to .ts file, ask tsc for error diagnostics and automatically apply transformations to resolve those errors when they can. Yep that’s how I’d do it too. I wrote a simpler version when doing a tsc upgrade to resolve a whole bunch of errors. It parses the tsc errors and does simple string replaces. Has anyone played with the tool to report how good it is? I remember v8…