Closed thetutlage closed 4 years ago
How will this change the experience of someone working in the framework, who doesn't want to use TS? Do I need to change my workflow or install additional tooling or serve the app any differently?
Nothing changes for the end user. I donβt want to enforce Typescript or any other compiled language to the end user.
The typescript is just for the core
Will this be taking the approach of Angular? With options to either use Typescript or JavaScript?
I don't know the Angular case, but here it won't change anything for the end user. It's Node-based, all of the files will be compiled to native JS. So when you use it you won't see a difference, but Typescript-using folks will have type-safety built-in. :)
Will this affect startup time or as devs, will we be using the pre-compiled output?
As far as I know there is no way to run typescript without compiling it first, so there would be no changes to startup times. If you are going to use Typescript there would be compilation time involved, but that takes place only once.
Lemme clear some doubts.
If you are going to put only js files to npm, how are the type definitions going to be available for users? Is TypeScript gonna create some typedef files?
It will be the dist
folder generated by Typescript. So type definitions will be included. I was trying to say that source .ts
files will not be published.
Ok, makes sense :)
nice :) Typescript is future of JS
Already starting to see some benefits with auto-completion in VS Code. This is great!
Would there be any official docs on "how-to" use adonis with typescript? I'm especially interested in some guide on how to properly compile code for production and the final project structure with typescript
Hey @SAGV! π
Yes, there will be!
Hi @RomainLanz, This is awesome! Is there any update or ETA on the official typescript support? (I'm not rushing, just curious)
Hi , How can I create a typescript boilerplate? Will you provide that ? Me and some other folks may want to use TS for the main app too.
Hey @mtamadon! π
Everything will be provided and explained, we do not help people installing V5 at the moment because it's not ready yet.
How far is the progress on v5? Really looking forward to this... We're currently using Sequelize which is lacking so many features...
Close to release. π
Okay, i'll be waiting for the release before testing it out. Typescript is a must for us... Do you have en ETA?
guys? π
Brief history
Typescript is a superset of Javascript but improves the overall quality of the entire codebase in many ways.
What problem does it solve?
Proposal
Me (Harminder Virk), will take one piece at a time and will move it to Typescript. Since this change will become part of 5.0, I can take the leverage to code new features in Typescript and migrate the old codebase at the same time.
Are you willing to work on it?
YES, YES, YES