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.

- https://gitlab.gnome.org/BrainBlasted/gnome-typescript-template/
- https://github.com/flathub/org.freedesktop.Sdk.Extension.typescript

#gnome #typescript #libadwaita #flatpak

reshared this

in reply to Chris 🌱 :verified_purple:

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 🌱 :verified_purple:

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 https://gitlab.gnome.org/ewlsh/gi.ts/.

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

in reply to Chris 🌱 :verified_purple:

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 🌱 :verified_purple:

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.