/ts-for-gir

TypeScript type definition generator for GObject introspection interfaces

Primary LanguageTypeScriptApache License 2.0Apache-2.0

TS for GIR

TypeScript type definition generator for GObject introspection GIR files

ts-for-gir is a robust TypeScript type definitions generator that improves the development experience of GJS projects. It has been completely rewritten over time to provide a more complete and accurate TypeScript representation of the GObject introspection interfaces. With ts-for-gir, developers can now benefit from TypeScript's strong typing and improved code navigation, making it easier to build robust and powerful applications with GJS.

Getting Started

Install the latest LTS version of Node.js. We recommend using NVM for this purpose. After Node.js has been installed, ts-for-gir can be executed with the following command:

npx @ts-for-gir/cli --help

That's it, you can start generating your types 👩‍💻☕

Further information

Examples - Take a look at many different examples to see how you can use TypeScript with different bundlers.
CLI - Learn about the CLI options and what to keep in mind when using them.
Development - Learn how you can contribute to this project.

Related Projects

  • node-gtk - GIO bindings for NodeJS
  • cgjs - A NodeJS / CommonJS Runtime for GJS
  • vala-girs - Collection of GIRs and VAPIs for the Vala toolchain
  • gjs-examples - GJS examples showing how to build Gtk javascript applications
  • hello-gjs-yarn - Gjs example using Babel and Rollup
  • vala-object - Set of examples of how you can build native code with Vala and use it in Gjs, Node.js and other environments
  • Workbench - Learn and prototype with GNOME technologies
  • troll - Common JavaScript APIs for gjs and some helpers.