Skip to content

Update node-gtk types #298

@alissonlauffer

Description

@alissonlauffer

Hello! I'm developing a new application using TypeScript and Libadwaita. However, the application uses libraries that are not compatible with pure GJS, so I would need to use Node with node-gtk.

There are generated types for node-gtk in npm, but they are out of date, so I would like to request an update.

https://www.npmjs.com/package/@girs/node-gtk-4.0: GTK 4.12.5
https://www.npmjs.com/package/@girs/gtk-4.0: GTK 4.20.1

https://www.npmjs.com/package/@girs/node-adw-1: Libadwaita 1.4.3
https://www.npmjs.com/package/@girs/adw-1: Libadwaita 1.9.0

I also tried hardcoding a node-gtk.d.ts file to export the GJS types, but then I saw that there are fundamental differences between the GJS bindings and node-gtk, such as the fact that in GJS, methods are snake_case and in node-gtk they are camelCase.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions