Hello, this is my first try with node-gtk.
I was in trouble not getting the Gtk types namespace. So I made this change on node_modules/.node-gtk-types/node-gtk.d.ts:
- from:
declare module 'gi:Gtk' { const ns: typeof import('./Gtk-4.0.js'); export default ns }
- to:
declare module 'gi:Gtk' { import * as ns from './Gtk-4.0.js'; export = ns }
I don't know if this is a good change for the project, so I wait for your feedback.
Hello, this is my first try with node-gtk.
I was in trouble not getting the Gtk types namespace. So I made this change on
node_modules/.node-gtk-types/node-gtk.d.ts:declare module 'gi:Gtk' { const ns: typeof import('./Gtk-4.0.js'); export default ns }declare module 'gi:Gtk' { import * as ns from './Gtk-4.0.js'; export = ns }I don't know if this is a good change for the project, so I wait for your feedback.