Recently I tried porting a GJS app to TypeScript. Overall I found it a really positive experience. Strong type checking gives me much more confidence that the code I write will run before I run it, and I appreciate the tooling for in-editor error checking and other things that forced me to write more robust code. I think I would like to port Weather to TypeScript after this. However, there’s a big open question: are we okay with depending on the general web ecosystem for TypeScript in GNOME? Particularly, we’d need to depend on NPM.
NPM is a bit notorious for incidents like left-pad being pulled, or malicious code being inserted into popular packages or their dependencies. There’s also the issue of whether or not distros would accept packages that vendor dependencies for offline builds - some distros have been hesitant to include Rust projects for similar reasons.
I wanted to take the time to see what others think of these issues. I think using and promoting TypeScript as a part of the GNOME platform could be a huge boon for us.