gjs-typelib-installer
    Preparing search index...

    Variable packagesConst

    packages: {
        Adw: { "1": () => TypelibInfo };
        cairo: { "1.0": () => TypelibInfo };
        Gdk: { "3.0": () => TypelibInfo; "4.0": () => TypelibInfo };
        GioUnix: { "2.0": () => TypelibInfo };
        GLibUnix: { "2.0": () => TypelibInfo };
        Gtk: { "3.0": () => TypelibInfo; "4.0": () => TypelibInfo };
        Handy: { "1": () => TypelibInfo };
        Pango: { "1.0": () => TypelibInfo };
        Template: { "1.0": () => TypelibInfo };
        Vte: { "2.91": () => TypelibInfo; "3.91": () => TypelibInfo };
    } = ...

    Package definitions for GObject introspection typelibs. Organized by namespace and version, each entry maps to a resolver function that returns the appropriate package names for the current OS.

    Type Declaration

    const gtk = packages.Gtk['4.0']().packages;

    if (gtk)
    print(`To install Gtk 4.0 typelib, install the following package(s): ${gtk.join(', ')}`);
    else
    printerr("Can't find a Gtk 4.0 package for this OS");