This repository contains TypeScript type definition files for GObject introspection libraries targeting GJS and node-gtk. These types are generated using ts-for-gir, a powerful TypeScript type definition generator for GObject Introspection GIR files.
Developers can now benefit from TypeScript's strong typing and improved code navigation, making it easier to build robust and powerful applications with GJS.
The pre-generated type definitions can be found in the types repository. The repository includes types for various GObject Introspection modules, including:
The types are also available pre-generated for Node.js, see for this node-gtk, node-gtk-4.0, node-adw-1, node-gio-2.0 and so on..
To use these type definitions in your GJS project, you can install them via npm or yarn:
npm install @girs/gjs @girs/gtk-4.0 --save
# or
yarn add @girs/gjs @girs/gtk-4.0