Gathering detailed insights and metrics for @girs/node-colord-1.0
Gathering detailed insights and metrics for @girs/node-colord-1.0
Gathering detailed insights and metrics for @girs/node-colord-1.0
Gathering detailed insights and metrics for @girs/node-colord-1.0
TypeScript type definition generator for GObject introspection interfaces
npm install @girs/node-colord-1.0
4.0.0-beta.19
Published on 09 Nov 2024
4.0.0-beta.18
Published on 05 Nov 2024
4.0.0-beta.17
Published on 03 Nov 2024
4.0.0-beta.16
Published on 20 Sept 2024
4.0.0-beta.15
Published on 31 Aug 2024
4.0.0-beta.14
Published on 26 Jul 2024
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
244 Stars
1,453 Commits
18 Forks
11 Watching
26 Branches
16 Contributors
Updated on 26 Nov 2024
TypeScript (98.78%)
JavaScript (1.02%)
Shell (0.2%)
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
700%
16
Compared to previous week
Last month
82.4%
31
Compared to previous month
Last year
-54.2%
760
Compared to previous year
1
1
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.
You are on the main
branch. This are the next features of ts-for-gir
v4.x where ts-for-gir
is merged with gi.ts.
main
branch: https://github.com/gjsify/ts-for-gir/tree/main
3.x
branch: https://github.com/gjsify/ts-for-gir/tree/3.x
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:
1npx @ts-for-gir/cli --help
That's it, you can start generating your types 👩💻☕
If you are only interested in the types and do not want to generate them yourself, you can use our pre-generated NPM packages. For example, if you want to develop a Gtk4 application with GJS, it is enough to install the corresponding NPM packages:
1npm install @girs/gjs @girs/gtk-4.0 --save
1import '@girs/gjs' 2import '@girs/gjs/dom' 3import '@girs/gtk-4.0' 4 5import Gtk from 'gi://Gtk?version=4.0'; 6 7const button = new Gtk.Button();
All pre-generated NPM packages can be found on gjsify/types.
You want your or any other missing GObject introspection based library types to be published on NPM for every release? Then feel free to create an issue for it, we will be happy to include it.
Version 3.x has working node-gtk support. This is currently not planned for version 4.x. We ourselves want to focus on GJS support. However, if there is a need in the community to maintain node-gtk support, then we are looking for a maintainer for that. Feel free to get in touch 🤓
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.
gjsify/types - Pre-generated NPM packages that you can use directly without needing ts-for-gir for it.
GNOME Shell Extension Types - Very experimental additional hand written type definitions for GNOME Shell Extensions.
No vulnerabilities found.
No security vulnerabilities found.