@ts-for-gir/lib 3.3.0 → 4.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/lib/constants.d.ts +8 -13
- package/lib/constants.js +79 -24
- package/lib/constants.js.map +1 -1
- package/lib/dependency-manager.d.ts +60 -16
- package/lib/dependency-manager.js +146 -56
- package/lib/dependency-manager.js.map +1 -1
- package/lib/formatters/default.d.ts +4 -0
- package/lib/formatters/default.js +7 -0
- package/lib/formatters/default.js.map +1 -0
- package/lib/formatters/formatter.d.ts +3 -0
- package/lib/formatters/formatter.js +3 -0
- package/lib/formatters/formatter.js.map +1 -0
- package/lib/formatters/json.d.ts +4 -0
- package/lib/formatters/json.js +7 -0
- package/lib/formatters/json.js.map +1 -0
- package/lib/generators/dts/glib.d.ts +2 -0
- package/lib/generators/dts/glib.js +514 -0
- package/lib/generators/dts/glib.js.map +1 -0
- package/lib/generators/dts/gobject.d.ts +2 -0
- package/lib/generators/dts/gobject.js +117 -0
- package/lib/generators/dts/gobject.js.map +1 -0
- package/lib/generators/dts-inline.d.ts +10 -0
- package/lib/generators/dts-inline.js +57 -0
- package/lib/generators/dts-inline.js.map +1 -0
- package/lib/generators/dts-modules.d.ts +10 -0
- package/lib/generators/dts-modules.js +98 -0
- package/lib/generators/dts-modules.js.map +1 -0
- package/lib/generators/dts.d.ts +45 -0
- package/lib/generators/dts.js +682 -0
- package/lib/generators/dts.js.map +1 -0
- package/lib/generators/generator.d.ts +45 -0
- package/lib/generators/generator.js +9 -0
- package/lib/generators/generator.js.map +1 -0
- package/lib/generators/index.d.ts +5 -0
- package/lib/generators/index.js +6 -0
- package/lib/generators/index.js.map +1 -0
- package/lib/generators/json.d.ts +258 -0
- package/lib/generators/json.js +867 -0
- package/lib/generators/json.js.map +1 -0
- package/lib/generics/clutter.d.ts +26 -0
- package/lib/generics/clutter.js +49 -0
- package/lib/generics/clutter.js.map +1 -0
- package/lib/generics/generify.d.ts +2 -0
- package/lib/generics/generify.js +39 -0
- package/lib/generics/generify.js.map +1 -0
- package/lib/generics/gio.d.ts +7 -0
- package/lib/generics/gio.js +51 -0
- package/lib/generics/gio.js.map +1 -0
- package/lib/generics/glib.d.ts +7 -0
- package/lib/generics/glib.js +18 -0
- package/lib/generics/glib.js.map +1 -0
- package/lib/generics/meta.d.ts +21 -0
- package/lib/generics/meta.js +26 -0
- package/lib/generics/meta.js.map +1 -0
- package/lib/generics/st.d.ts +16 -0
- package/lib/generics/st.js +92 -0
- package/lib/generics/st.js.map +1 -0
- package/lib/generics/visitor.d.ts +20 -0
- package/lib/generics/visitor.js +255 -0
- package/lib/generics/visitor.js.map +1 -0
- package/lib/gir/alias.d.ts +24 -0
- package/lib/gir/alias.js +43 -0
- package/lib/gir/alias.js.map +1 -0
- package/lib/gir/base.d.ts +62 -0
- package/lib/gir/base.js +95 -0
- package/lib/gir/base.js.map +1 -0
- package/lib/gir/class.d.ts +189 -0
- package/lib/gir/class.js +1131 -0
- package/lib/gir/class.js.map +1 -0
- package/lib/gir/const.d.ts +25 -0
- package/lib/gir/const.js +43 -0
- package/lib/gir/const.js.map +1 -0
- package/lib/gir/enum.d.ts +45 -0
- package/lib/gir/enum.js +164 -0
- package/lib/gir/enum.js.map +1 -0
- package/lib/gir/function.d.ts +199 -0
- package/lib/gir/function.js +683 -0
- package/lib/gir/function.js.map +1 -0
- package/lib/gir/generics.d.ts +5 -0
- package/lib/gir/generics.js +57 -0
- package/lib/gir/generics.js.map +1 -0
- package/lib/gir/namespace.d.ts +21 -0
- package/lib/gir/namespace.js +57 -0
- package/lib/gir/namespace.js.map +1 -0
- package/lib/gir/nodes.d.ts +11 -0
- package/lib/gir/nodes.js +12 -0
- package/lib/gir/nodes.js.map +1 -0
- package/lib/gir/property.d.ts +60 -0
- package/lib/gir/property.js +128 -0
- package/lib/gir/property.js.map +1 -0
- package/lib/gir/registry.d.ts +51 -0
- package/lib/gir/registry.js +144 -0
- package/lib/gir/registry.js.map +1 -0
- package/lib/gir/signal.d.ts +33 -0
- package/lib/gir/signal.js +165 -0
- package/lib/gir/signal.js.map +1 -0
- package/lib/gir/util.d.ts +49 -0
- package/lib/gir/util.js +559 -0
- package/lib/gir/util.js.map +1 -0
- package/lib/gir-module.d.ts +69 -241
- package/lib/gir-module.js +433 -2154
- package/lib/gir-module.js.map +1 -1
- package/lib/gir.d.ts +253 -0
- package/lib/gir.js +642 -0
- package/lib/gir.js.map +1 -0
- package/lib/index.d.ts +6 -6
- package/lib/index.js +8 -6
- package/lib/index.js.map +1 -1
- package/lib/injections/gee08.d.ts +7 -0
- package/lib/injections/gee08.js +68 -0
- package/lib/injections/gee08.js.map +1 -0
- package/lib/injections/gee1.d.ts +7 -0
- package/lib/injections/gee1.js +28 -0
- package/lib/injections/gee1.js.map +1 -0
- package/lib/injections/gio.d.ts +7 -0
- package/lib/injections/gio.js +431 -0
- package/lib/injections/gio.js.map +1 -0
- package/lib/injections/glib.d.ts +7 -0
- package/lib/injections/glib.js +204 -0
- package/lib/injections/glib.js.map +1 -0
- package/lib/injections/gobject.d.ts +7 -0
- package/lib/injections/gobject.js +479 -0
- package/lib/injections/gobject.js.map +1 -0
- package/lib/injections/inject.d.ts +4 -0
- package/lib/injections/inject.js +28 -0
- package/lib/injections/inject.js.map +1 -0
- package/lib/injections/tracker1.d.ts +7 -0
- package/lib/injections/tracker1.js +30 -0
- package/lib/injections/tracker1.js.map +1 -0
- package/lib/library-version.d.ts +2 -0
- package/lib/library-version.js +13 -0
- package/lib/library-version.js.map +1 -1
- package/lib/logger.d.ts +19 -19
- package/lib/logger.js +31 -34
- package/lib/logger.js.map +1 -1
- package/lib/messages.d.ts +1 -7
- package/lib/messages.js +1 -6
- package/lib/messages.js.map +1 -1
- package/lib/registry.d.ts +8 -0
- package/lib/registry.js +12 -0
- package/lib/registry.js.map +1 -0
- package/lib/transformation.d.ts +8 -19
- package/lib/transformation.js +40 -216
- package/lib/transformation.js.map +1 -1
- package/lib/types/dependency.d.ts +13 -1
- package/lib/types/format.d.ts +1 -0
- package/lib/types/format.js +2 -0
- package/lib/types/format.js.map +1 -0
- package/lib/types/gir-alias-element.d.ts +3 -12
- package/lib/types/gir-bitfield-element.d.ts +3 -14
- package/lib/types/gir-callable-param-element.d.ts +3 -31
- package/lib/types/gir-callable-params.d.ts +7 -0
- package/lib/types/gir-callable-params.js +2 -0
- package/lib/types/gir-callable-params.js.map +1 -0
- package/lib/types/gir-callable-return.d.ts +3 -20
- package/lib/types/gir-callback-element.d.ts +3 -12
- package/lib/types/gir-class-element.d.ts +3 -34
- package/lib/types/gir-constant-element.d.ts +3 -14
- package/lib/types/gir-constructor-element.d.ts +3 -5
- package/lib/types/gir-enum-element.d.ts +3 -16
- package/lib/types/gir-field-element.d.ts +3 -16
- package/lib/types/gir-function-element.d.ts +3 -5
- package/lib/types/gir-instance-parameter.d.ts +2 -17
- package/lib/types/gir-interface-element.d.ts +4 -19
- package/lib/types/gir-member-element.d.ts +4 -16
- package/lib/types/gir-method-element.d.ts +4 -10
- package/lib/types/gir-module-resolved-by.d.ts +5 -0
- package/lib/types/gir-namespace.d.ts +14 -17
- package/lib/types/gir-property-element.d.ts +3 -22
- package/lib/types/gir-record-element.d.ts +3 -23
- package/lib/types/gir-repository.d.ts +3 -14
- package/lib/types/gir-signal.d.ts +3 -18
- package/lib/types/gir-union-element.d.ts +3 -16
- package/lib/types/gir-virtual-method.d.ts +3 -7
- package/lib/types/index.d.ts +10 -56
- package/lib/types/index.js +10 -56
- package/lib/types/index.js.map +1 -1
- package/lib/types/metadata.d.ts +8 -0
- package/lib/types/metadata.js +2 -0
- package/lib/types/metadata.js.map +1 -0
- package/lib/types/options-base.d.ts +4 -0
- package/lib/types/options-base.js +2 -0
- package/lib/types/options-base.js.map +1 -0
- package/lib/types/options-generation.d.ts +44 -0
- package/lib/types/options-generation.js +2 -0
- package/lib/types/options-generation.js.map +1 -0
- package/lib/types/options-load.d.ts +5 -0
- package/lib/types/options-load.js +2 -0
- package/lib/types/options-load.js.map +1 -0
- package/lib/types/options-transform.d.ts +4 -0
- package/lib/types/options-transform.js +2 -0
- package/lib/types/options-transform.js.map +1 -0
- package/lib/types/output-format.d.ts +1 -0
- package/lib/types/output-format.js +2 -0
- package/lib/types/output-format.js.map +1 -0
- package/lib/types/parsed-gir.d.ts +3 -2
- package/lib/types/property-case.d.ts +1 -0
- package/lib/types/property-case.js +2 -0
- package/lib/types/property-case.js.map +1 -0
- package/lib/types/template-data.d.ts +2 -2
- package/lib/types/transformations.d.ts +1 -8
- package/lib/types/user-config.d.ts +20 -16
- package/lib/util.d.ts +20 -0
- package/lib/util.js +67 -0
- package/lib/util.js.map +1 -0
- package/lib/utils/files.d.ts +21 -0
- package/lib/utils/files.js +62 -0
- package/lib/utils/files.js.map +1 -0
- package/lib/utils/girs.d.ts +45 -0
- package/lib/utils/girs.js +101 -0
- package/lib/utils/girs.js.map +1 -0
- package/lib/utils/index.d.ts +6 -0
- package/lib/utils/index.js +7 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/numbers.d.ts +6 -0
- package/lib/utils/numbers.js +10 -0
- package/lib/utils/numbers.js.map +1 -0
- package/lib/utils/objects.d.ts +135 -0
- package/lib/utils/objects.js +122 -0
- package/lib/utils/objects.js.map +1 -0
- package/lib/utils/path.d.ts +1 -0
- package/lib/utils/path.js +7 -0
- package/lib/utils/path.js.map +1 -0
- package/lib/utils/strings.d.ts +74 -0
- package/lib/utils/strings.js +121 -0
- package/lib/utils/strings.js.map +1 -0
- package/lib/utils.d.ts +22 -44
- package/lib/utils.js +58 -69
- package/lib/utils.js.map +1 -1
- package/lib/validators/class.d.ts +7 -0
- package/lib/validators/class.js +217 -0
- package/lib/validators/class.js.map +1 -0
- package/lib/validators/interface.d.ts +5 -0
- package/lib/validators/interface.js +16 -0
- package/lib/validators/interface.js.map +1 -0
- package/lib/visitor.d.ts +35 -0
- package/lib/visitor.js +29 -0
- package/lib/visitor.js.map +1 -0
- package/package.json +20 -15
- package/lib/conflict-resolver.d.ts +0 -156
- package/lib/conflict-resolver.js +0 -1117
- package/lib/conflict-resolver.js.map +0 -1
- package/lib/gir-factory.d.ts +0 -52
- package/lib/gir-factory.js +0 -376
- package/lib/gir-factory.js.map +0 -1
- package/lib/gir-parser.d.ts +0 -2
- package/lib/gir-parser.js +0 -69
- package/lib/gir-parser.js.map +0 -1
- package/lib/injection/callbacks/gjs/Gio-2.0.d.ts +0 -2
- package/lib/injection/callbacks/gjs/Gio-2.0.js +0 -36
- package/lib/injection/callbacks/gjs/Gio-2.0.js.map +0 -1
- package/lib/injection/callbacks/gjs/index.d.ts +0 -2
- package/lib/injection/callbacks/gjs/index.js +0 -3
- package/lib/injection/callbacks/gjs/index.js.map +0 -1
- package/lib/injection/callbacks/index.d.ts +0 -4
- package/lib/injection/callbacks/index.js +0 -4
- package/lib/injection/callbacks/index.js.map +0 -1
- package/lib/injection/callbacks/node-gtk/index.d.ts +0 -2
- package/lib/injection/callbacks/node-gtk/index.js +0 -2
- package/lib/injection/callbacks/node-gtk/index.js.map +0 -1
- package/lib/injection/classes/gjs/gio-2.0.d.ts +0 -5
- package/lib/injection/classes/gjs/gio-2.0.js +0 -254
- package/lib/injection/classes/gjs/gio-2.0.js.map +0 -1
- package/lib/injection/classes/gjs/glib-2.0.d.ts +0 -2
- package/lib/injection/classes/gjs/glib-2.0.js +0 -225
- package/lib/injection/classes/gjs/glib-2.0.js.map +0 -1
- package/lib/injection/classes/gjs/gobject-2.0.d.ts +0 -2
- package/lib/injection/classes/gjs/gobject-2.0.js +0 -634
- package/lib/injection/classes/gjs/gobject-2.0.js.map +0 -1
- package/lib/injection/classes/gjs/index.d.ts +0 -2
- package/lib/injection/classes/gjs/index.js +0 -5
- package/lib/injection/classes/gjs/index.js.map +0 -1
- package/lib/injection/classes/glib-2.0.d.ts +0 -2
- package/lib/injection/classes/glib-2.0.js +0 -35
- package/lib/injection/classes/glib-2.0.js.map +0 -1
- package/lib/injection/classes/index.d.ts +0 -4
- package/lib/injection/classes/index.js +0 -5
- package/lib/injection/classes/index.js.map +0 -1
- package/lib/injection/classes/node-gtk/gdk-4.0.d.ts +0 -2
- package/lib/injection/classes/node-gtk/gdk-4.0.js +0 -32
- package/lib/injection/classes/node-gtk/gdk-4.0.js.map +0 -1
- package/lib/injection/classes/node-gtk/gio-2.0.d.ts +0 -2
- package/lib/injection/classes/node-gtk/gio-2.0.js +0 -14
- package/lib/injection/classes/node-gtk/gio-2.0.js.map +0 -1
- package/lib/injection/classes/node-gtk/glib-2.0.d.ts +0 -2
- package/lib/injection/classes/node-gtk/glib-2.0.js +0 -19
- package/lib/injection/classes/node-gtk/glib-2.0.js.map +0 -1
- package/lib/injection/classes/node-gtk/gobject-2.0.d.ts +0 -2
- package/lib/injection/classes/node-gtk/gobject-2.0.js +0 -66
- package/lib/injection/classes/node-gtk/gobject-2.0.js.map +0 -1
- package/lib/injection/classes/node-gtk/graphene-1.0.d.ts +0 -2
- package/lib/injection/classes/node-gtk/graphene-1.0.js +0 -133
- package/lib/injection/classes/node-gtk/graphene-1.0.js.map +0 -1
- package/lib/injection/classes/node-gtk/gtk-3.0.d.ts +0 -2
- package/lib/injection/classes/node-gtk/gtk-3.0.js +0 -31
- package/lib/injection/classes/node-gtk/gtk-3.0.js.map +0 -1
- package/lib/injection/classes/node-gtk/gtk-4.0.d.ts +0 -2
- package/lib/injection/classes/node-gtk/gtk-4.0.js +0 -52
- package/lib/injection/classes/node-gtk/gtk-4.0.js.map +0 -1
- package/lib/injection/classes/node-gtk/index.d.ts +0 -2
- package/lib/injection/classes/node-gtk/index.js +0 -19
- package/lib/injection/classes/node-gtk/index.js.map +0 -1
- package/lib/injection/classes/node-gtk/pango-1.0.d.ts +0 -2
- package/lib/injection/classes/node-gtk/pango-1.0.js +0 -31
- package/lib/injection/classes/node-gtk/pango-1.0.js.map +0 -1
- package/lib/injection/index.d.ts +0 -3
- package/lib/injection/index.js +0 -4
- package/lib/injection/index.js.map +0 -1
- package/lib/injection/injector.d.ts +0 -17
- package/lib/injection/injector.js +0 -140
- package/lib/injection/injector.js.map +0 -1
- package/lib/symtable.d.ts +0 -24
- package/lib/symtable.js +0 -63
- package/lib/symtable.js.map +0 -1
- package/lib/types/build-type.d.ts +0 -1
- package/lib/types/build-type.js +0 -2
- package/lib/types/build-type.js.map +0 -1
- package/lib/types/conflict-child-element.d.ts +0 -10
- package/lib/types/conflict-child-element.js +0 -2
- package/lib/types/conflict-child-element.js.map +0 -1
- package/lib/types/conflict-grouped-element.d.ts +0 -6
- package/lib/types/conflict-grouped-element.js +0 -2
- package/lib/types/conflict-grouped-element.js.map +0 -1
- package/lib/types/conflict-grouped-elements.d.ts +0 -4
- package/lib/types/conflict-grouped-elements.js +0 -2
- package/lib/types/conflict-grouped-elements.js.map +0 -1
- package/lib/types/environment.d.ts +0 -1
- package/lib/types/environment.js +0 -2
- package/lib/types/environment.js.map +0 -1
- package/lib/types/generate-config.d.ts +0 -41
- package/lib/types/generate-config.js +0 -2
- package/lib/types/generate-config.js.map +0 -1
- package/lib/types/gir-any-type.d.ts +0 -5
- package/lib/types/gir-any-type.js +0 -2
- package/lib/types/gir-any-type.js.map +0 -1
- package/lib/types/gir-array-type.d.ts +0 -20
- package/lib/types/gir-array-type.js +0 -3
- package/lib/types/gir-array-type.js.map +0 -1
- package/lib/types/gir-boolean.d.ts +0 -1
- package/lib/types/gir-boolean.js +0 -2
- package/lib/types/gir-boolean.js.map +0 -1
- package/lib/types/gir-boxed-element.d.ts +0 -15
- package/lib/types/gir-boxed-element.js +0 -2
- package/lib/types/gir-boxed-element.js.map +0 -1
- package/lib/types/gir-c-include.d.ts +0 -7
- package/lib/types/gir-c-include.js +0 -2
- package/lib/types/gir-c-include.js.map +0 -1
- package/lib/types/gir-callable-attrs.d.ts +0 -15
- package/lib/types/gir-callable-attrs.js +0 -3
- package/lib/types/gir-callable-attrs.js.map +0 -1
- package/lib/types/gir-callable-param.d.ts +0 -7
- package/lib/types/gir-callable-param.js +0 -2
- package/lib/types/gir-callable-param.js.map +0 -1
- package/lib/types/gir-direction.d.ts +0 -7
- package/lib/types/gir-direction.js +0 -9
- package/lib/types/gir-direction.js.map +0 -1
- package/lib/types/gir-doc-element.d.ts +0 -68
- package/lib/types/gir-doc-element.js +0 -2
- package/lib/types/gir-doc-element.js.map +0 -1
- package/lib/types/gir-implements.d.ts +0 -8
- package/lib/types/gir-implements.js +0 -2
- package/lib/types/gir-implements.js.map +0 -1
- package/lib/types/gir-include.d.ts +0 -9
- package/lib/types/gir-include.js +0 -2
- package/lib/types/gir-include.js.map +0 -1
- package/lib/types/gir-info-attrs.d.ts +0 -13
- package/lib/types/gir-info-attrs.js +0 -2
- package/lib/types/gir-info-attrs.js.map +0 -1
- package/lib/types/gir-info-elements.d.ts +0 -5
- package/lib/types/gir-info-elements.js +0 -2
- package/lib/types/gir-info-elements.js.map +0 -1
- package/lib/types/gir-package.d.ts +0 -7
- package/lib/types/gir-package.js +0 -2
- package/lib/types/gir-package.js.map +0 -1
- package/lib/types/gir-prerequisite.d.ts +0 -5
- package/lib/types/gir-prerequisite.js +0 -2
- package/lib/types/gir-prerequisite.js.map +0 -1
- package/lib/types/gir-transfer-ownership-type.d.ts +0 -5
- package/lib/types/gir-transfer-ownership-type.js +0 -7
- package/lib/types/gir-transfer-ownership-type.js.map +0 -1
- package/lib/types/gir-transfer-ownership.d.ts +0 -9
- package/lib/types/gir-transfer-ownership.js +0 -2
- package/lib/types/gir-transfer-ownership.js.map +0 -1
- package/lib/types/gir-type.d.ts +0 -14
- package/lib/types/gir-type.js +0 -2
- package/lib/types/gir-type.js.map +0 -1
- package/lib/types/gir-var-args.d.ts +0 -5
- package/lib/types/gir-var-args.js +0 -2
- package/lib/types/gir-var-args.js.map +0 -1
- package/lib/types/injection-callback.d.ts +0 -16
- package/lib/types/injection-callback.js +0 -2
- package/lib/types/injection-callback.js.map +0 -1
- package/lib/types/injection-class.d.ts +0 -25
- package/lib/types/injection-class.js +0 -2
- package/lib/types/injection-class.js.map +0 -1
- package/lib/types/injection-function.d.ts +0 -7
- package/lib/types/injection-function.js +0 -2
- package/lib/types/injection-function.js.map +0 -1
- package/lib/types/injection-generic-parameter.d.ts +0 -2
- package/lib/types/injection-generic-parameter.js +0 -2
- package/lib/types/injection-generic-parameter.js.map +0 -1
- package/lib/types/injection-instance-parameter.d.ts +0 -2
- package/lib/types/injection-instance-parameter.js +0 -2
- package/lib/types/injection-instance-parameter.js.map +0 -1
- package/lib/types/injection-parameter.d.ts +0 -8
- package/lib/types/injection-parameter.js +0 -2
- package/lib/types/injection-parameter.js.map +0 -1
- package/lib/types/injection-property.d.ts +0 -4
- package/lib/types/injection-property.js +0 -2
- package/lib/types/injection-property.js.map +0 -1
- package/lib/types/injection-type.d.ts +0 -2
- package/lib/types/injection-type.js +0 -2
- package/lib/types/injection-type.js.map +0 -1
- package/lib/types/injection.d.ts +0 -5
- package/lib/types/injection.js +0 -2
- package/lib/types/injection.js.map +0 -1
- package/lib/types/module-type.d.ts +0 -1
- package/lib/types/module-type.js +0 -2
- package/lib/types/module-type.js.map +0 -1
- package/lib/types/promisify-func.d.ts +0 -7
- package/lib/types/promisify-func.js +0 -2
- package/lib/types/promisify-func.js.map +0 -1
- package/lib/types/sym-table-items.d.ts +0 -4
- package/lib/types/sym-table-items.js +0 -2
- package/lib/types/sym-table-items.js.map +0 -1
- package/lib/types/ts-alias.d.ts +0 -10
- package/lib/types/ts-alias.js +0 -2
- package/lib/types/ts-alias.js.map +0 -1
- package/lib/types/ts-callback-interface.d.ts +0 -10
- package/lib/types/ts-callback-interface.js +0 -2
- package/lib/types/ts-callback-interface.js.map +0 -1
- package/lib/types/ts-callback.d.ts +0 -17
- package/lib/types/ts-callback.js +0 -2
- package/lib/types/ts-callback.js.map +0 -1
- package/lib/types/ts-class.d.ts +0 -85
- package/lib/types/ts-class.js +0 -2
- package/lib/types/ts-class.js.map +0 -1
- package/lib/types/ts-enum.d.ts +0 -12
- package/lib/types/ts-enum.js +0 -2
- package/lib/types/ts-enum.js.map +0 -1
- package/lib/types/ts-function.d.ts +0 -55
- package/lib/types/ts-function.js +0 -2
- package/lib/types/ts-function.js.map +0 -1
- package/lib/types/ts-generic-parameter.d.ts +0 -8
- package/lib/types/ts-generic-parameter.js +0 -2
- package/lib/types/ts-generic-parameter.js.map +0 -1
- package/lib/types/ts-instance-parameter.d.ts +0 -4
- package/lib/types/ts-instance-parameter.js +0 -2
- package/lib/types/ts-instance-parameter.js.map +0 -1
- package/lib/types/ts-member.d.ts +0 -10
- package/lib/types/ts-member.js +0 -2
- package/lib/types/ts-member.js.map +0 -1
- package/lib/types/ts-method.d.ts +0 -5
- package/lib/types/ts-method.js +0 -2
- package/lib/types/ts-method.js.map +0 -1
- package/lib/types/ts-parameter.d.ts +0 -15
- package/lib/types/ts-parameter.js +0 -2
- package/lib/types/ts-parameter.js.map +0 -1
- package/lib/types/ts-property.d.ts +0 -17
- package/lib/types/ts-property.js +0 -2
- package/lib/types/ts-property.js.map +0 -1
- package/lib/types/ts-signal.d.ts +0 -17
- package/lib/types/ts-signal.js +0 -2
- package/lib/types/ts-signal.js.map +0 -1
- package/lib/types/ts-type-name.d.ts +0 -1
- package/lib/types/ts-type-name.js +0 -2
- package/lib/types/ts-type-name.js.map +0 -1
- package/lib/types/ts-type-separator.d.ts +0 -1
- package/lib/types/ts-type-separator.js +0 -2
- package/lib/types/ts-type-separator.js.map +0 -1
- package/lib/types/ts-type.d.ts +0 -26
- package/lib/types/ts-type.js +0 -2
- package/lib/types/ts-type.js.map +0 -1
- package/lib/types/ts-var.d.ts +0 -17
- package/lib/types/ts-var.js +0 -2
- package/lib/types/ts-var.js.map +0 -1
package/lib/gir-module.d.ts
CHANGED
|
@@ -1,58 +1,57 @@
|
|
|
1
1
|
import { Transformation } from './transformation.js';
|
|
2
2
|
import { Logger } from './logger.js';
|
|
3
|
-
import { Injector } from './injection/injector.js';
|
|
4
|
-
import { GirFactory } from './gir-factory.js';
|
|
5
|
-
import { ConflictResolver } from './conflict-resolver.js';
|
|
6
3
|
import { DependencyManager } from './dependency-manager.js';
|
|
7
|
-
import { SymTable } from './symtable.js';
|
|
8
4
|
import { LibraryVersion } from './library-version.js';
|
|
9
|
-
import type { Dependency,
|
|
5
|
+
import type { Dependency, GirConstantElement, TsDocTag, OptionsGeneration } from './types/index.js';
|
|
6
|
+
import { GirNSMember } from './gir.js';
|
|
7
|
+
import { IntrospectedAlias } from './gir/alias.js';
|
|
8
|
+
import { IntrospectedNamespaceMember } from './gir/base.js';
|
|
9
|
+
import { IntrospectedBaseClass } from './gir/class.js';
|
|
10
|
+
import { IntrospectedEnum } from './gir/enum.js';
|
|
11
|
+
import { IntrospectedFunction, IntrospectedFunctionParameter, IntrospectedClassFunction } from './gir/function.js';
|
|
12
|
+
import { NSRegistry } from './gir/registry.js';
|
|
13
|
+
import { GirVisitor } from './visitor.js';
|
|
10
14
|
export declare class GirModule {
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Array of all gir modules
|
|
14
|
-
*/
|
|
15
|
-
static allGirModules: GirModule[];
|
|
15
|
+
readonly dependency: Dependency;
|
|
16
16
|
/**
|
|
17
17
|
* E.g. 'Gtk'
|
|
18
18
|
*/
|
|
19
|
-
namespace: string;
|
|
19
|
+
get namespace(): string;
|
|
20
20
|
/**
|
|
21
21
|
* E.g. '4.0'
|
|
22
22
|
*/
|
|
23
|
-
version: string;
|
|
23
|
+
get version(): string;
|
|
24
24
|
/**
|
|
25
25
|
* E.g. 'Gtk-4.0'
|
|
26
26
|
*/
|
|
27
|
-
packageName: string;
|
|
27
|
+
get packageName(): string;
|
|
28
28
|
/**
|
|
29
29
|
* E.g. 'Gtk40'
|
|
30
30
|
* Is used in the generated index.d.ts, for example: `import * as Gtk40 from "./Gtk-4.0.js";`
|
|
31
31
|
*/
|
|
32
|
-
importNamespace: string;
|
|
33
|
-
|
|
32
|
+
get importNamespace(): string;
|
|
33
|
+
/**
|
|
34
|
+
* The NPM package name E.g. 'gtk-4.0'
|
|
35
|
+
*/
|
|
36
|
+
get importName(): string;
|
|
37
|
+
/**
|
|
38
|
+
* Import path for the package E.g. './Gtk-4.0.js' or '@girs/Gtk-4.0'
|
|
39
|
+
*/
|
|
40
|
+
get importPath(): string;
|
|
41
|
+
prefixes: string[];
|
|
34
42
|
/**
|
|
35
43
|
* The version of the library as an object.
|
|
36
44
|
* E.g. `{ major: 4, minor: 0, patch: 0 }` or as string `4.0.0`'
|
|
37
45
|
*/
|
|
38
|
-
libraryVersion: LibraryVersion;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
46
|
+
get libraryVersion(): LibraryVersion;
|
|
47
|
+
protected _dependencies: Dependency[] | null;
|
|
48
|
+
protected _transitiveDependencies: Dependency[] | null;
|
|
49
|
+
get dependencies(): Dependency[];
|
|
42
50
|
get transitiveDependencies(): Dependency[];
|
|
43
51
|
get allDependencies(): Dependency[];
|
|
44
|
-
repo: GirRepository;
|
|
45
|
-
ns: GirNamespace;
|
|
46
|
-
/**
|
|
47
|
-
* Used to find namespaces that are used in other modules
|
|
48
|
-
*/
|
|
49
|
-
symTable: SymTable;
|
|
50
52
|
transformation: Transformation;
|
|
51
|
-
girFactory: GirFactory;
|
|
52
53
|
dependencyManager: DependencyManager;
|
|
53
|
-
conflictResolver: ConflictResolver;
|
|
54
54
|
log: Logger;
|
|
55
|
-
inject: Injector;
|
|
56
55
|
extends?: string;
|
|
57
56
|
/**
|
|
58
57
|
* To prevent constants from being exported twice, the names already exported are saved here for comparison.
|
|
@@ -61,218 +60,47 @@ export declare class GirModule {
|
|
|
61
60
|
constNames: {
|
|
62
61
|
[varName: string]: GirConstantElement;
|
|
63
62
|
};
|
|
64
|
-
|
|
63
|
+
readonly c_prefixes: string[];
|
|
64
|
+
private _members?;
|
|
65
|
+
private _enum_constants?;
|
|
66
|
+
private _resolve_names;
|
|
67
|
+
__dts__references?: string[];
|
|
68
|
+
package_version: readonly [string, string] | readonly [string, string, string];
|
|
69
|
+
parent: NSRegistry;
|
|
70
|
+
config: OptionsGeneration;
|
|
71
|
+
constructor(dependency: Dependency, prefixes: string[], config: OptionsGeneration);
|
|
72
|
+
initDependencies(): Promise<void>;
|
|
73
|
+
initTransitiveDependencies(transitiveDependencies: Dependency[]): Promise<void>;
|
|
74
|
+
get ns(): this;
|
|
65
75
|
private checkTransitiveDependencies;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
* TODO: find better name for this method
|
|
96
|
-
* @param girVar
|
|
97
|
-
* @param fullTypeName
|
|
98
|
-
* @returns e.g.
|
|
99
|
-
* ```ts
|
|
100
|
-
* {
|
|
101
|
-
* namespace: "Gtk",
|
|
102
|
-
* resValue: "Gtk.Widget"
|
|
103
|
-
* }
|
|
104
|
-
*
|
|
105
|
-
*/
|
|
106
|
-
private fullTypeLookup;
|
|
107
|
-
/**
|
|
108
|
-
* this method needs to be refactored, an array can also be an array of an array for example
|
|
109
|
-
* @param girVar
|
|
110
|
-
* @returns
|
|
111
|
-
*/
|
|
112
|
-
getArrayData(girVar: GirCallableReturn | GirAliasElement | GirFieldElement | GirCallableParamElement | GirPropertyElement | GirConstantElement): {
|
|
113
|
-
arrCType: string | undefined;
|
|
114
|
-
arrayType: GirType | null;
|
|
115
|
-
isArray: boolean;
|
|
116
|
-
overrideTypeName: string | undefined;
|
|
117
|
-
};
|
|
118
|
-
/**
|
|
119
|
-
* Get the typescript type of a GirElement like a `GirPropertyElement` or `GirCallableReturn`
|
|
120
|
-
* @param girVar
|
|
121
|
-
*/
|
|
122
|
-
private getTsType;
|
|
123
|
-
/**
|
|
124
|
-
*
|
|
125
|
-
* @param girFunc
|
|
126
|
-
* @returns
|
|
127
|
-
*/
|
|
128
|
-
private getReturnType;
|
|
129
|
-
private arrayLengthIndexLookup;
|
|
130
|
-
private closureDataIndexLookup;
|
|
131
|
-
private destroyDataIndexLookup;
|
|
132
|
-
private processParams;
|
|
133
|
-
/**
|
|
134
|
-
* Checks if the parameter is nullable (which results in ` | null`).
|
|
135
|
-
*
|
|
136
|
-
* @param girVar girVar to test
|
|
137
|
-
*/
|
|
138
|
-
private typeIsNullable;
|
|
139
|
-
/**
|
|
140
|
-
* Checks if the parameter is optional (which results in `foo?: bar`).
|
|
141
|
-
* @param girVar girVar to test
|
|
142
|
-
*/
|
|
143
|
-
private typeIsOptional;
|
|
144
|
-
/**
|
|
145
|
-
* Checks if the property is readonly.
|
|
146
|
-
* @param girCallback
|
|
147
|
-
*/
|
|
148
|
-
private typeIsReadonly;
|
|
149
|
-
private setParameterTsData;
|
|
150
|
-
private getInstanceParameterTsData;
|
|
151
|
-
private setParametersTsData;
|
|
152
|
-
private getVariableTsData;
|
|
153
|
-
private getPropertyTsData;
|
|
154
|
-
/**
|
|
155
|
-
*
|
|
156
|
-
* @param girFunc
|
|
157
|
-
* @param prefix E.g. vfunc
|
|
158
|
-
* @param overrideReturnType
|
|
159
|
-
* @param isArrowType
|
|
160
|
-
* @param indentCount
|
|
161
|
-
*/
|
|
162
|
-
private getFunctionTsData;
|
|
163
|
-
overloadPromisifiedFunctions(girFunctions: GirFunctionElement[]): void;
|
|
164
|
-
private getCallbackInterfaceTsData;
|
|
165
|
-
private setCallbackTsData;
|
|
166
|
-
private getSignalCallbackInterfaceTsData;
|
|
167
|
-
private getConstructorFunctionTsData;
|
|
168
|
-
private getSignalCallbackTsData;
|
|
169
|
-
/**
|
|
170
|
-
* Generates signal methods like `connect`, `connect_after` and `emit` on Gjs or `connect`, `on`, `once`, `off` and `emit` an node-gtk
|
|
171
|
-
* for a default gir signal element
|
|
172
|
-
* @param girSignal
|
|
173
|
-
* @returns
|
|
174
|
-
*/
|
|
175
|
-
private getClassSignalMethodsTsData;
|
|
176
|
-
/**
|
|
177
|
-
* Generates signal methods for the GObject properties of a gir class element
|
|
178
|
-
* @param girClass
|
|
179
|
-
*/
|
|
180
|
-
private getClassPropertySignalsMethods;
|
|
181
|
-
private getGeneralSignalsMethods;
|
|
182
|
-
private setSignalTsData;
|
|
183
|
-
private fixEnumerationDuplicateIdentifier;
|
|
184
|
-
private getEnumerationMemberTsData;
|
|
185
|
-
private getEnumerationTsData;
|
|
186
|
-
private getAliasTsData;
|
|
187
|
-
private getConstantTsData;
|
|
188
|
-
private getClassConstructPropsTsData;
|
|
189
|
-
/**
|
|
190
|
-
* Some class/static methods are defined in a separate record which is not
|
|
191
|
-
* exported, but the methods are available as members of the JS constructor.
|
|
192
|
-
* In gjs one can use an instance of the object, a JS constructor or a GType
|
|
193
|
-
* as the method's instance-parameter.
|
|
194
|
-
* @see https://discourse.gnome.org/t/using-class-methods-like-gtk-widget-class-get-css-name-from-gjs/4001
|
|
195
|
-
* @param girClass
|
|
196
|
-
*/
|
|
197
|
-
private getClassRecordMethods;
|
|
198
|
-
/**
|
|
199
|
-
* Instance methods
|
|
200
|
-
* @param girClass
|
|
201
|
-
* @param localNames
|
|
202
|
-
*/
|
|
203
|
-
private getClassMethodsTsData;
|
|
204
|
-
private getClassFieldsTsData;
|
|
205
|
-
private getGObjectProperties;
|
|
206
|
-
/**
|
|
207
|
-
* Create a clone object of a property with the name in upper camel case
|
|
208
|
-
* See github.com/gjsify/ts-for-gir/issues/138
|
|
209
|
-
* @param girProperty
|
|
210
|
-
* @returns
|
|
211
|
-
*/
|
|
212
|
-
private clonePropertyForUnderscores;
|
|
213
|
-
private getClassPropertiesTsData;
|
|
214
|
-
private getClassNonStaticPropertyNames;
|
|
215
|
-
private getClassConstructorsTsData;
|
|
216
|
-
private getClassVirtualMethodsTsData;
|
|
217
|
-
/**
|
|
218
|
-
*
|
|
219
|
-
* @param girClass This is the class / interface the `parentClass` implements signals from
|
|
220
|
-
* @returns
|
|
221
|
-
*/
|
|
222
|
-
private getClassSignalsTsData;
|
|
223
|
-
getClassParentObject(parentName: string, namespace: string, type: 'parent' | 'prerequisite' | 'implements'): ClassParent;
|
|
224
|
-
private getClassParents;
|
|
225
|
-
private setClassBaseTsData;
|
|
226
|
-
private setClassTsData;
|
|
227
|
-
private isDerivedFromGObject;
|
|
228
|
-
private getClassParent;
|
|
229
|
-
private traverseInheritanceTree;
|
|
230
|
-
private forEachInterface;
|
|
231
|
-
/**
|
|
232
|
-
*
|
|
233
|
-
* @param girElement
|
|
234
|
-
* @param localNames Can be (constructor) properties, fields or methods
|
|
235
|
-
* @param type
|
|
236
|
-
*/
|
|
237
|
-
private checkOrSetLocalName;
|
|
238
|
-
private isGtypeStructFor;
|
|
239
|
-
/**
|
|
240
|
-
* E.g GObject.ObjectClass is a abstract class and required by UPowerGlib-1.0, UDisks-2.0 and others
|
|
241
|
-
* @param girClass
|
|
242
|
-
* @returns `true` if this is this a abstract class.
|
|
243
|
-
*/
|
|
244
|
-
private isAbstractClass;
|
|
245
|
-
/**
|
|
246
|
-
*
|
|
247
|
-
* @param girClass
|
|
248
|
-
* @returns
|
|
249
|
-
*/
|
|
250
|
-
private getOtherStaticFunctions;
|
|
251
|
-
private getStaticNewFunctions;
|
|
252
|
-
/**
|
|
253
|
-
* Static methods, <constructor> and <function>
|
|
254
|
-
* @param girClass
|
|
255
|
-
* @param constructorTypeName Used to overwrite the constructor return type
|
|
256
|
-
* @param useReference This value should be `false` for inherited and implemented classes / interfaces.
|
|
257
|
-
* Otherwise other modules would overwrite the return value of the constructor methods
|
|
258
|
-
*/
|
|
259
|
-
private getClassStaticFunctionsTsData;
|
|
260
|
-
private setModuleTsData;
|
|
261
|
-
/**
|
|
262
|
-
* TODO: find better name for this method
|
|
263
|
-
* @param fullTypeName
|
|
264
|
-
* @returns
|
|
265
|
-
*/
|
|
266
|
-
private fullTypeLookupWithNamespace;
|
|
267
|
-
private loadInheritance;
|
|
268
|
-
private loadTypes;
|
|
269
|
-
/**
|
|
270
|
-
* Before processing the typescript data, each module should be initialized first.
|
|
271
|
-
* This is done in the `GenerationHandler`.
|
|
272
|
-
*/
|
|
273
|
-
init(inheritanceTable: InheritanceTable): void;
|
|
274
|
-
/**
|
|
275
|
-
* Start processing the typescript data
|
|
276
|
-
*/
|
|
277
|
-
start(girModules: GirModule[]): void;
|
|
76
|
+
getTsDocReturnTags(girElement?: IntrospectedFunction | IntrospectedClassFunction): TsDocTag[];
|
|
77
|
+
getTsDocInParamTags(inParams?: IntrospectedFunctionParameter[]): TsDocTag[];
|
|
78
|
+
registerResolveName(resolveName: string, namespace: string, name: string): void;
|
|
79
|
+
get members(): Map<string, GirNSMember | GirNSMember[]>;
|
|
80
|
+
get enum_constants(): Map<string, readonly [string, string]>;
|
|
81
|
+
accept(visitor: GirVisitor): this;
|
|
82
|
+
getImportsForCPrefix(c_prefix: string): GirModule[];
|
|
83
|
+
hasImport(name: string): boolean;
|
|
84
|
+
private _getImport;
|
|
85
|
+
getInstalledImport(_namespace: string): GirModule | null;
|
|
86
|
+
assertInstalledImport(_namespace: string): GirModule;
|
|
87
|
+
getMembers(name: string): IntrospectedNamespaceMember[];
|
|
88
|
+
getMemberWithoutOverrides(name: string): GirNSMember | null | undefined;
|
|
89
|
+
assertClass(name: string): IntrospectedBaseClass;
|
|
90
|
+
getClass(name: string): IntrospectedBaseClass | null;
|
|
91
|
+
getEnum(name: string): IntrospectedEnum | null;
|
|
92
|
+
getAlias(name: string): IntrospectedAlias | null;
|
|
93
|
+
hasSymbol(name: string): boolean;
|
|
94
|
+
resolveSymbolFromTypeName(name: string): string | null;
|
|
95
|
+
findClassCallback(name: string): [string | null, string];
|
|
96
|
+
/**
|
|
97
|
+
* This is an internal method to add TypeScript <reference>
|
|
98
|
+
* comments when overrides use parts of the TypeScript standard
|
|
99
|
+
* libraries that are newer than default.
|
|
100
|
+
*/
|
|
101
|
+
___dts___addReference(reference: string): void;
|
|
102
|
+
static load(dependency: Dependency, config: OptionsGeneration, registry: NSRegistry): Promise<GirModule>;
|
|
103
|
+
/** Start to parse all the data from the XML we need for the typescript generation */
|
|
104
|
+
parse(): void;
|
|
278
105
|
}
|
|
106
|
+
export declare function promisifyNamespaceFunctions(namespace: GirModule): void;
|