Skip to main content


If you're interested in using Typescript for GNOME apps, you can now use the new Typescript SDK Extension. I've also published a Typescript Template you can use as a starting point for your apps.

- gitlab.gnome.org/BrainBlasted/…
- github.com/flathub/org.freedes…

#gnome #typescript #libadwaita #flatpak

reshared this

in reply to Chris 🌱

I've been working on both of these for a while now, and I think they're finally ready to be used by others in their applications. Please give them a try and provide any feedback you might have :)
in reply to Chris 🌱

this looks way nicer than horrendously full of boilerplate and macros bindings for Rust. Might as well try to use it, but I wonder how I would bridge TS with C or Rust libraries for the backend.
in reply to Maksym Hazevych

@mks_h The really neat thing with the TS "bindings" is that they're not really bindings. They're type definitions that are there solely to tell `tsc` about introspected types. If the backend code you want to use is introspectable, you can use it in TS code like you would with JS code. You can also generate type definitions from the .gir files with gitlab.gnome.org/ewlsh/gi.ts/.

My friend has an experiment with mixing gjs, Rust, and C here: gitlab.gnome.org/ZanderBrown/r…

in reply to Chris 🌱

I'm not likely to ever use it, but this is really cool. Typescript is basically the only javascript that I think I could stand using day to day.
in reply to Chris 🌱

WAW! That's supper, I knew the existance of nodegui, and also some project to use gtk with javascript, is more or less the same? (a bridge between node and libadwaita?)
in reply to eickot ||*||

@eickot not really - node isn't used here other than to install eslint and prettier. GJS is a JavaScript runtime that can directly use introspected libraries, and that's what I'm using here.
⇧