@peachy/types
v2025.2.4
Published
GNOME Runtime TypeScript types
Downloads
331
Readme
gi-typescript-definitions
This repo contains auto-generated types from the master GNOME SDK.
Installation
npm install @peachy/typesUsage
{
"compilerOptions": {
"include": ["@peachy/types", "src"]
}
}Then in your application you can use GJS types
// src/index.ts
import Gtk from "gi://Gtk?version=4.0"
const label = new Gtk.Label();Development
To update the types here, follow these steps
Clone this repo, and make sure you have an updated installation of GNOME SDK and the node24
flatpak install org.gnome.Sdk//master org.freedesktop.Sdk.Extension.node24Then run this to update the types
./generate_types_in_flatpak.shTODO
- [ ] Setup CI to automatically update these types
