TypeScript Without Transpilation (2021)
incrementalelm.com
TypeScript Without Transpilation (2021)
1–10 of 46 posts
Re: TypeScript Without Transpilation (2021)
#2Re: TypeScript Without Transpilation (2021)
#3What ends up being written is not TypeScript syntax (which does require transpilation to run).
JSDoc is awesome for incremental adoption though, I've migrated a few codebases this way without too much pain.
Re: TypeScript Without Transpilation (2021)
#4Re: TypeScript Without Transpilation (2021)
#5Does anyone know if I have a TypeScript project, is there an automated process to turn it into this format this article describes? Eject for TS, I guess.
Re: TypeScript Without Transpilation (2021)
#6Sorry for being that guy, but this should probably be called "typechecking without transpilation". What ends up being written is not TypeScript syntax (which does require transpilation to run). JSDoc is awesome for incremental adoption though, I've migrated a few codebases this way without too much pain.
Re: TypeScript Without Transpilation (2021)
#7Sorry for being that guy, but this should probably be called "typechecking without transpilation". What ends up being written is not TypeScript syntax (which does require transpilation to run). JSDoc is awesome for incremental adoption though, I've migrated a few codebases this way without too much pain.
Is there some command you can run to rewrite all the JSDoc as actual TypeScript?
You just need to call this from somewhere like ts-morph.
Re: TypeScript Without Transpilation (2021)
#8Does anyone know if I have a TypeScript project, is there an automated process to turn it into this format this article describes? Eject for TS, I guess.
GPT-4 would probably do a good job at that if the code is not sensitive
Re: TypeScript Without Transpilation (2021)
#9Sorry for being that guy, but this should probably be called "typechecking without transpilation". What ends up being written is not TypeScript syntax (which does require transpilation to run). JSDoc is awesome for incremental adoption though, I've migrated a few codebases this way without too much pain.