@ts-for-gir/cli 3.0.0-beta.2
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 +156 -0
- package/lib/commands/doc.d.ts +27 -0
- package/lib/commands/doc.js +48 -0
- package/lib/commands/doc.js.map +1 -0
- package/lib/commands/generate.d.ts +45 -0
- package/lib/commands/generate.js +71 -0
- package/lib/commands/generate.js.map +1 -0
- package/lib/commands/index.d.ts +3 -0
- package/lib/commands/index.js +4 -0
- package/lib/commands/index.js.map +1 -0
- package/lib/commands/list.d.ts +21 -0
- package/lib/commands/list.js +77 -0
- package/lib/commands/list.js.map +1 -0
- package/lib/config.d.ts +103 -0
- package/lib/config.js +385 -0
- package/lib/config.js.map +1 -0
- package/lib/conflict-resolver.d.ts +154 -0
- package/lib/conflict-resolver.js +1095 -0
- package/lib/conflict-resolver.js.map +1 -0
- package/lib/constants.d.ts +18 -0
- package/lib/constants.js +23 -0
- package/lib/constants.js.map +1 -0
- package/lib/generation-handler.d.ts +12 -0
- package/lib/generation-handler.js +63 -0
- package/lib/generation-handler.js.map +1 -0
- package/lib/generator.d.ts +5 -0
- package/lib/generator.js +2 -0
- package/lib/generator.js.map +1 -0
- package/lib/gir-factory.d.ts +50 -0
- package/lib/gir-factory.js +354 -0
- package/lib/gir-factory.js.map +1 -0
- package/lib/gir-module.d.ts +256 -0
- package/lib/gir-module.js +2075 -0
- package/lib/gir-module.js.map +1 -0
- package/lib/html-doc-generator.d.ts +13 -0
- package/lib/html-doc-generator.js +18 -0
- package/lib/html-doc-generator.js.map +1 -0
- package/lib/index.d.ts +17 -0
- package/lib/index.js +18 -0
- package/lib/index.js.map +1 -0
- package/lib/injection/callbacks/gjs/Gio-2.0.d.ts +2 -0
- package/lib/injection/callbacks/gjs/Gio-2.0.js +36 -0
- package/lib/injection/callbacks/gjs/Gio-2.0.js.map +1 -0
- package/lib/injection/callbacks/gjs/index.d.ts +2 -0
- package/lib/injection/callbacks/gjs/index.js +3 -0
- package/lib/injection/callbacks/gjs/index.js.map +1 -0
- package/lib/injection/callbacks/index.d.ts +4 -0
- package/lib/injection/callbacks/index.js +4 -0
- package/lib/injection/callbacks/index.js.map +1 -0
- package/lib/injection/callbacks/node-gtk/index.d.ts +2 -0
- package/lib/injection/callbacks/node-gtk/index.js +2 -0
- package/lib/injection/callbacks/node-gtk/index.js.map +1 -0
- package/lib/injection/classes/GLib-2-0.d.ts +2 -0
- package/lib/injection/classes/GLib-2-0.js +35 -0
- package/lib/injection/classes/GLib-2-0.js.map +1 -0
- package/lib/injection/classes/gjs/GLib-2.0.d.ts +2 -0
- package/lib/injection/classes/gjs/GLib-2.0.js +74 -0
- package/lib/injection/classes/gjs/GLib-2.0.js.map +1 -0
- package/lib/injection/classes/gjs/GObject-2.0.d.ts +2 -0
- package/lib/injection/classes/gjs/GObject-2.0.js +634 -0
- package/lib/injection/classes/gjs/GObject-2.0.js.map +1 -0
- package/lib/injection/classes/gjs/Gio-2.0.d.ts +5 -0
- package/lib/injection/classes/gjs/Gio-2.0.js +218 -0
- package/lib/injection/classes/gjs/Gio-2.0.js.map +1 -0
- package/lib/injection/classes/gjs/index.d.ts +2 -0
- package/lib/injection/classes/gjs/index.js +5 -0
- package/lib/injection/classes/gjs/index.js.map +1 -0
- package/lib/injection/classes/index.d.ts +4 -0
- package/lib/injection/classes/index.js +5 -0
- package/lib/injection/classes/index.js.map +1 -0
- package/lib/injection/classes/node-gtk/GLib-2.0.d.ts +2 -0
- package/lib/injection/classes/node-gtk/GLib-2.0.js +19 -0
- package/lib/injection/classes/node-gtk/GLib-2.0.js.map +1 -0
- package/lib/injection/classes/node-gtk/GObject-2.0.d.ts +2 -0
- package/lib/injection/classes/node-gtk/GObject-2.0.js +66 -0
- package/lib/injection/classes/node-gtk/GObject-2.0.js.map +1 -0
- package/lib/injection/classes/node-gtk/Gdk-4.0.d.ts +2 -0
- package/lib/injection/classes/node-gtk/Gdk-4.0.js +32 -0
- package/lib/injection/classes/node-gtk/Gdk-4.0.js.map +1 -0
- package/lib/injection/classes/node-gtk/Gio-2.0.d.ts +2 -0
- package/lib/injection/classes/node-gtk/Gio-2.0.js +14 -0
- package/lib/injection/classes/node-gtk/Gio-2.0.js.map +1 -0
- package/lib/injection/classes/node-gtk/Graphene-1.0.d.ts +2 -0
- package/lib/injection/classes/node-gtk/Graphene-1.0.js +133 -0
- package/lib/injection/classes/node-gtk/Graphene-1.0.js.map +1 -0
- package/lib/injection/classes/node-gtk/Gtk-3.0.d.ts +2 -0
- package/lib/injection/classes/node-gtk/Gtk-3.0.js +31 -0
- package/lib/injection/classes/node-gtk/Gtk-3.0.js.map +1 -0
- package/lib/injection/classes/node-gtk/Gtk-4.0.d.ts +2 -0
- package/lib/injection/classes/node-gtk/Gtk-4.0.js +52 -0
- package/lib/injection/classes/node-gtk/Gtk-4.0.js.map +1 -0
- package/lib/injection/classes/node-gtk/Pango-1.0.d.ts +2 -0
- package/lib/injection/classes/node-gtk/Pango-1.0.js +31 -0
- package/lib/injection/classes/node-gtk/Pango-1.0.js.map +1 -0
- package/lib/injection/classes/node-gtk/index.d.ts +2 -0
- package/lib/injection/classes/node-gtk/index.js +19 -0
- package/lib/injection/classes/node-gtk/index.js.map +1 -0
- package/lib/injection/index.d.ts +3 -0
- package/lib/injection/index.js +4 -0
- package/lib/injection/index.js.map +1 -0
- package/lib/injection/injector.d.ts +17 -0
- package/lib/injection/injector.js +136 -0
- package/lib/injection/injector.js.map +1 -0
- package/lib/logger.d.ts +36 -0
- package/lib/logger.js +133 -0
- package/lib/logger.js.map +1 -0
- package/lib/messages.d.ts +30 -0
- package/lib/messages.js +45 -0
- package/lib/messages.js.map +1 -0
- package/lib/module-loader.d.ts +131 -0
- package/lib/module-loader.js +467 -0
- package/lib/module-loader.js.map +1 -0
- package/lib/start.d.ts +2 -0
- package/lib/start.js +15 -0
- package/lib/start.js.map +1 -0
- package/lib/symtable.d.ts +24 -0
- package/lib/symtable.js +63 -0
- package/lib/symtable.js.map +1 -0
- package/lib/template-processor.d.ts +46 -0
- package/lib/template-processor.js +154 -0
- package/lib/template-processor.js.map +1 -0
- package/lib/transformation.d.ts +156 -0
- package/lib/transformation.js +523 -0
- package/lib/transformation.js.map +1 -0
- package/lib/type-definition-generator.d.ts +117 -0
- package/lib/type-definition-generator.js +929 -0
- package/lib/type-definition-generator.js.map +1 -0
- package/lib/types/answer-version.d.ts +4 -0
- package/lib/types/answer-version.js +2 -0
- package/lib/types/answer-version.js.map +1 -0
- package/lib/types/build-type.d.ts +1 -0
- package/lib/types/build-type.js +2 -0
- package/lib/types/build-type.js.map +1 -0
- package/lib/types/class-parent.d.ts +11 -0
- package/lib/types/class-parent.js +2 -0
- package/lib/types/class-parent.js.map +1 -0
- package/lib/types/config-flags.d.ts +4 -0
- package/lib/types/config-flags.js +2 -0
- package/lib/types/config-flags.js.map +1 -0
- package/lib/types/conflict-child-element.d.ts +10 -0
- package/lib/types/conflict-child-element.js +2 -0
- package/lib/types/conflict-child-element.js.map +1 -0
- package/lib/types/conflict-grouped-element.d.ts +6 -0
- package/lib/types/conflict-grouped-element.js +2 -0
- package/lib/types/conflict-grouped-element.js.map +1 -0
- package/lib/types/conflict-grouped-elements.d.ts +4 -0
- package/lib/types/conflict-grouped-elements.js +2 -0
- package/lib/types/conflict-grouped-elements.js.map +1 -0
- package/lib/types/construct-name.d.ts +1 -0
- package/lib/types/construct-name.js +2 -0
- package/lib/types/construct-name.js.map +1 -0
- package/lib/types/dependency-map.d.ts +4 -0
- package/lib/types/dependency-map.js +2 -0
- package/lib/types/dependency-map.js.map +1 -0
- package/lib/types/dependency.d.ts +14 -0
- package/lib/types/dependency.js +2 -0
- package/lib/types/dependency.js.map +1 -0
- package/lib/types/environment.d.ts +1 -0
- package/lib/types/environment.js +2 -0
- package/lib/types/environment.js.map +1 -0
- package/lib/types/generate-config.d.ts +30 -0
- package/lib/types/generate-config.js +2 -0
- package/lib/types/generate-config.js.map +1 -0
- package/lib/types/generator-type.d.ts +4 -0
- package/lib/types/generator-type.js +6 -0
- package/lib/types/generator-type.js.map +1 -0
- package/lib/types/gir-alias-element.d.ts +13 -0
- package/lib/types/gir-alias-element.js +2 -0
- package/lib/types/gir-alias-element.js.map +1 -0
- package/lib/types/gir-annotation.d.ts +9 -0
- package/lib/types/gir-annotation.js +2 -0
- package/lib/types/gir-annotation.js.map +1 -0
- package/lib/types/gir-any-element.d.ts +2 -0
- package/lib/types/gir-any-element.js +2 -0
- package/lib/types/gir-any-element.js.map +1 -0
- package/lib/types/gir-any-type.d.ts +5 -0
- package/lib/types/gir-any-type.js +2 -0
- package/lib/types/gir-any-type.js.map +1 -0
- package/lib/types/gir-array-type.d.ts +20 -0
- package/lib/types/gir-array-type.js +3 -0
- package/lib/types/gir-array-type.js.map +1 -0
- package/lib/types/gir-bitfield-element.d.ts +17 -0
- package/lib/types/gir-bitfield-element.js +2 -0
- package/lib/types/gir-bitfield-element.js.map +1 -0
- package/lib/types/gir-boolean.d.ts +1 -0
- package/lib/types/gir-boolean.js +2 -0
- package/lib/types/gir-boolean.js.map +1 -0
- package/lib/types/gir-boxed-element.d.ts +15 -0
- package/lib/types/gir-boxed-element.js +2 -0
- package/lib/types/gir-boxed-element.js.map +1 -0
- package/lib/types/gir-c-include.d.ts +7 -0
- package/lib/types/gir-c-include.js +2 -0
- package/lib/types/gir-c-include.js.map +1 -0
- package/lib/types/gir-callable-attrs.d.ts +15 -0
- package/lib/types/gir-callable-attrs.js +3 -0
- package/lib/types/gir-callable-attrs.js.map +1 -0
- package/lib/types/gir-callable-param-element.d.ts +30 -0
- package/lib/types/gir-callable-param-element.js +2 -0
- package/lib/types/gir-callable-param-element.js.map +1 -0
- package/lib/types/gir-callable-param.d.ts +7 -0
- package/lib/types/gir-callable-param.js +2 -0
- package/lib/types/gir-callable-param.js.map +1 -0
- package/lib/types/gir-callable-return.d.ts +22 -0
- package/lib/types/gir-callable-return.js +2 -0
- package/lib/types/gir-callable-return.js.map +1 -0
- package/lib/types/gir-callback-element.d.ts +15 -0
- package/lib/types/gir-callback-element.js +2 -0
- package/lib/types/gir-callback-element.js.map +1 -0
- package/lib/types/gir-class-element.d.ts +48 -0
- package/lib/types/gir-class-element.js +2 -0
- package/lib/types/gir-class-element.js.map +1 -0
- package/lib/types/gir-constant-element.d.ts +15 -0
- package/lib/types/gir-constant-element.js +2 -0
- package/lib/types/gir-constant-element.js.map +1 -0
- package/lib/types/gir-constructor-element.d.ts +8 -0
- package/lib/types/gir-constructor-element.js +2 -0
- package/lib/types/gir-constructor-element.js.map +1 -0
- package/lib/types/gir-direction.d.ts +5 -0
- package/lib/types/gir-direction.js +7 -0
- package/lib/types/gir-direction.js.map +1 -0
- package/lib/types/gir-doc-element.d.ts +68 -0
- package/lib/types/gir-doc-element.js +2 -0
- package/lib/types/gir-doc-element.js.map +1 -0
- package/lib/types/gir-enum-element.d.ts +19 -0
- package/lib/types/gir-enum-element.js +2 -0
- package/lib/types/gir-enum-element.js.map +1 -0
- package/lib/types/gir-field-element.d.ts +18 -0
- package/lib/types/gir-field-element.js +2 -0
- package/lib/types/gir-field-element.js.map +1 -0
- package/lib/types/gir-function-element.d.ts +8 -0
- package/lib/types/gir-function-element.js +2 -0
- package/lib/types/gir-function-element.js.map +1 -0
- package/lib/types/gir-implements.d.ts +8 -0
- package/lib/types/gir-implements.js +2 -0
- package/lib/types/gir-implements.js.map +1 -0
- package/lib/types/gir-include.d.ts +9 -0
- package/lib/types/gir-include.js +2 -0
- package/lib/types/gir-include.js.map +1 -0
- package/lib/types/gir-info-attrs.d.ts +13 -0
- package/lib/types/gir-info-attrs.js +2 -0
- package/lib/types/gir-info-attrs.js.map +1 -0
- package/lib/types/gir-info-elements.d.ts +5 -0
- package/lib/types/gir-info-elements.js +2 -0
- package/lib/types/gir-info-elements.js.map +1 -0
- package/lib/types/gir-instance-parameter.d.ts +21 -0
- package/lib/types/gir-instance-parameter.js +2 -0
- package/lib/types/gir-instance-parameter.js.map +1 -0
- package/lib/types/gir-interface-element.d.ts +31 -0
- package/lib/types/gir-interface-element.js +2 -0
- package/lib/types/gir-interface-element.js.map +1 -0
- package/lib/types/gir-member-element.d.ts +17 -0
- package/lib/types/gir-member-element.js +2 -0
- package/lib/types/gir-member-element.js.map +1 -0
- package/lib/types/gir-method-element.d.ts +13 -0
- package/lib/types/gir-method-element.js +2 -0
- package/lib/types/gir-method-element.js.map +1 -0
- package/lib/types/gir-module-resolved-by.d.ts +10 -0
- package/lib/types/gir-module-resolved-by.js +2 -0
- package/lib/types/gir-module-resolved-by.js.map +1 -0
- package/lib/types/gir-modules-grouped-map.d.ts +4 -0
- package/lib/types/gir-modules-grouped-map.js +2 -0
- package/lib/types/gir-modules-grouped-map.js.map +1 -0
- package/lib/types/gir-modules-grouped.d.ts +12 -0
- package/lib/types/gir-modules-grouped.js +2 -0
- package/lib/types/gir-modules-grouped.js.map +1 -0
- package/lib/types/gir-namespace.d.ts +30 -0
- package/lib/types/gir-namespace.js +2 -0
- package/lib/types/gir-namespace.js.map +1 -0
- package/lib/types/gir-package.d.ts +7 -0
- package/lib/types/gir-package.js +2 -0
- package/lib/types/gir-package.js.map +1 -0
- package/lib/types/gir-prerequisite.d.ts +5 -0
- package/lib/types/gir-prerequisite.js +2 -0
- package/lib/types/gir-prerequisite.js.map +1 -0
- package/lib/types/gir-property-element.d.ts +21 -0
- package/lib/types/gir-property-element.js +2 -0
- package/lib/types/gir-property-element.js.map +1 -0
- package/lib/types/gir-record-element.d.ts +30 -0
- package/lib/types/gir-record-element.js +2 -0
- package/lib/types/gir-record-element.js.map +1 -0
- package/lib/types/gir-repository.d.ts +16 -0
- package/lib/types/gir-repository.js +2 -0
- package/lib/types/gir-repository.js.map +1 -0
- package/lib/types/gir-signal.d.ts +25 -0
- package/lib/types/gir-signal.js +2 -0
- package/lib/types/gir-signal.js.map +1 -0
- package/lib/types/gir-transfer-ownership-type.d.ts +5 -0
- package/lib/types/gir-transfer-ownership-type.js +7 -0
- package/lib/types/gir-transfer-ownership-type.js.map +1 -0
- package/lib/types/gir-transfer-ownership.d.ts +5 -0
- package/lib/types/gir-transfer-ownership.js +2 -0
- package/lib/types/gir-transfer-ownership.js.map +1 -0
- package/lib/types/gir-type.d.ts +14 -0
- package/lib/types/gir-type.js +2 -0
- package/lib/types/gir-type.js.map +1 -0
- package/lib/types/gir-union-element.d.ts +22 -0
- package/lib/types/gir-union-element.js +2 -0
- package/lib/types/gir-union-element.js.map +1 -0
- package/lib/types/gir-unparsed-number.d.ts +2 -0
- package/lib/types/gir-unparsed-number.js +2 -0
- package/lib/types/gir-unparsed-number.js.map +1 -0
- package/lib/types/gir-var-args.d.ts +5 -0
- package/lib/types/gir-var-args.js +2 -0
- package/lib/types/gir-var-args.js.map +1 -0
- package/lib/types/gir-virtual-method.d.ts +10 -0
- package/lib/types/gir-virtual-method.js +2 -0
- package/lib/types/gir-virtual-method.js.map +1 -0
- package/lib/types/index.d.ts +118 -0
- package/lib/types/index.js +119 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/inheritance-table.d.ts +3 -0
- package/lib/types/inheritance-table.js +2 -0
- package/lib/types/inheritance-table.js.map +1 -0
- package/lib/types/injection-callback.d.ts +16 -0
- package/lib/types/injection-callback.js +2 -0
- package/lib/types/injection-callback.js.map +1 -0
- package/lib/types/injection-class.d.ts +24 -0
- package/lib/types/injection-class.js +2 -0
- package/lib/types/injection-class.js.map +1 -0
- package/lib/types/injection-function.d.ts +7 -0
- package/lib/types/injection-function.js +2 -0
- package/lib/types/injection-function.js.map +1 -0
- package/lib/types/injection-generic-parameter.d.ts +2 -0
- package/lib/types/injection-generic-parameter.js +2 -0
- package/lib/types/injection-generic-parameter.js.map +1 -0
- package/lib/types/injection-instance-parameter.d.ts +2 -0
- package/lib/types/injection-instance-parameter.js +2 -0
- package/lib/types/injection-instance-parameter.js.map +1 -0
- package/lib/types/injection-parameter.d.ts +8 -0
- package/lib/types/injection-parameter.js +2 -0
- package/lib/types/injection-parameter.js.map +1 -0
- package/lib/types/injection-property.d.ts +4 -0
- package/lib/types/injection-property.js +2 -0
- package/lib/types/injection-property.js.map +1 -0
- package/lib/types/injection-type.d.ts +2 -0
- package/lib/types/injection-type.js +2 -0
- package/lib/types/injection-type.js.map +1 -0
- package/lib/types/injection.d.ts +5 -0
- package/lib/types/injection.js +2 -0
- package/lib/types/injection.js.map +1 -0
- package/lib/types/local-name-check.d.ts +4 -0
- package/lib/types/local-name-check.js +2 -0
- package/lib/types/local-name-check.js.map +1 -0
- package/lib/types/local-name-type.d.ts +1 -0
- package/lib/types/local-name-type.js +2 -0
- package/lib/types/local-name-type.js.map +1 -0
- package/lib/types/local-name.d.ts +7 -0
- package/lib/types/local-name.js +2 -0
- package/lib/types/local-name.js.map +1 -0
- package/lib/types/local-names.d.ts +4 -0
- package/lib/types/local-names.js +2 -0
- package/lib/types/local-names.js.map +1 -0
- package/lib/types/module-type.d.ts +1 -0
- package/lib/types/module-type.js +2 -0
- package/lib/types/module-type.js.map +1 -0
- package/lib/types/parsed-gir.d.ts +4 -0
- package/lib/types/parsed-gir.js +2 -0
- package/lib/types/parsed-gir.js.map +1 -0
- package/lib/types/part-of-class.d.ts +7 -0
- package/lib/types/part-of-class.js +2 -0
- package/lib/types/part-of-class.js.map +1 -0
- package/lib/types/part-of-module.d.ts +6 -0
- package/lib/types/part-of-module.js +2 -0
- package/lib/types/part-of-module.js.map +1 -0
- package/lib/types/resolve-type.d.ts +4 -0
- package/lib/types/resolve-type.js +6 -0
- package/lib/types/resolve-type.js.map +1 -0
- package/lib/types/sym-table-items.d.ts +4 -0
- package/lib/types/sym-table-items.js +2 -0
- package/lib/types/sym-table-items.js.map +1 -0
- package/lib/types/transformation-case.d.ts +1 -0
- package/lib/types/transformation-case.js +2 -0
- package/lib/types/transformation-case.js.map +1 -0
- package/lib/types/transformations.d.ts +11 -0
- package/lib/types/transformations.js +2 -0
- package/lib/types/transformations.js.map +1 -0
- package/lib/types/ts-alias.d.ts +10 -0
- package/lib/types/ts-alias.js +2 -0
- package/lib/types/ts-alias.js.map +1 -0
- package/lib/types/ts-callback-interface.d.ts +10 -0
- package/lib/types/ts-callback-interface.js +2 -0
- package/lib/types/ts-callback-interface.js.map +1 -0
- package/lib/types/ts-callback.d.ts +17 -0
- package/lib/types/ts-callback.js +2 -0
- package/lib/types/ts-callback.js.map +1 -0
- package/lib/types/ts-class.d.ts +85 -0
- package/lib/types/ts-class.js +2 -0
- package/lib/types/ts-class.js.map +1 -0
- package/lib/types/ts-doc-tag.d.ts +21 -0
- package/lib/types/ts-doc-tag.js +2 -0
- package/lib/types/ts-doc-tag.js.map +1 -0
- package/lib/types/ts-doc.d.ts +20 -0
- package/lib/types/ts-doc.js +2 -0
- package/lib/types/ts-doc.js.map +1 -0
- package/lib/types/ts-enum.d.ts +12 -0
- package/lib/types/ts-enum.js +2 -0
- package/lib/types/ts-enum.js.map +1 -0
- package/lib/types/ts-function.d.ts +44 -0
- package/lib/types/ts-function.js +2 -0
- package/lib/types/ts-function.js.map +1 -0
- package/lib/types/ts-generic-parameter.d.ts +8 -0
- package/lib/types/ts-generic-parameter.js +2 -0
- package/lib/types/ts-generic-parameter.js.map +1 -0
- package/lib/types/ts-instance-parameter.d.ts +4 -0
- package/lib/types/ts-instance-parameter.js +2 -0
- package/lib/types/ts-instance-parameter.js.map +1 -0
- package/lib/types/ts-member.d.ts +10 -0
- package/lib/types/ts-member.js +2 -0
- package/lib/types/ts-member.js.map +1 -0
- package/lib/types/ts-method.d.ts +5 -0
- package/lib/types/ts-method.js +2 -0
- package/lib/types/ts-method.js.map +1 -0
- package/lib/types/ts-parameter.d.ts +15 -0
- package/lib/types/ts-parameter.js +2 -0
- package/lib/types/ts-parameter.js.map +1 -0
- package/lib/types/ts-property.d.ts +17 -0
- package/lib/types/ts-property.js +2 -0
- package/lib/types/ts-property.js.map +1 -0
- package/lib/types/ts-signal.d.ts +17 -0
- package/lib/types/ts-signal.js +2 -0
- package/lib/types/ts-signal.js.map +1 -0
- package/lib/types/ts-type-name.d.ts +1 -0
- package/lib/types/ts-type-name.js +2 -0
- package/lib/types/ts-type-name.js.map +1 -0
- package/lib/types/ts-type-separator.d.ts +1 -0
- package/lib/types/ts-type-separator.js +2 -0
- package/lib/types/ts-type-separator.js.map +1 -0
- package/lib/types/ts-type.d.ts +22 -0
- package/lib/types/ts-type.js +2 -0
- package/lib/types/ts-type.js.map +1 -0
- package/lib/types/ts-var.d.ts +17 -0
- package/lib/types/ts-var.js +2 -0
- package/lib/types/ts-var.js.map +1 -0
- package/lib/types/type-gir-alias.d.ts +2 -0
- package/lib/types/type-gir-alias.js +2 -0
- package/lib/types/type-gir-alias.js.map +1 -0
- package/lib/types/type-gir-class.d.ts +2 -0
- package/lib/types/type-gir-class.js +2 -0
- package/lib/types/type-gir-class.js.map +1 -0
- package/lib/types/type-gir-element.d.ts +3 -0
- package/lib/types/type-gir-element.js +2 -0
- package/lib/types/type-gir-element.js.map +1 -0
- package/lib/types/type-gir-enumeration-member.d.ts +2 -0
- package/lib/types/type-gir-enumeration-member.js +2 -0
- package/lib/types/type-gir-enumeration-member.js.map +1 -0
- package/lib/types/type-gir-enumeration.d.ts +2 -0
- package/lib/types/type-gir-enumeration.js +2 -0
- package/lib/types/type-gir-enumeration.js.map +1 -0
- package/lib/types/type-gir-function.d.ts +1 -0
- package/lib/types/type-gir-function.js +2 -0
- package/lib/types/type-gir-function.js.map +1 -0
- package/lib/types/type-gir-interface.d.ts +2 -0
- package/lib/types/type-gir-interface.js +2 -0
- package/lib/types/type-gir-interface.js.map +1 -0
- package/lib/types/type-gir-method.d.ts +2 -0
- package/lib/types/type-gir-method.js +2 -0
- package/lib/types/type-gir-method.js.map +1 -0
- package/lib/types/type-gir-parameter.d.ts +1 -0
- package/lib/types/type-gir-parameter.js +2 -0
- package/lib/types/type-gir-parameter.js.map +1 -0
- package/lib/types/type-gir-property.d.ts +2 -0
- package/lib/types/type-gir-property.js +2 -0
- package/lib/types/type-gir-property.js.map +1 -0
- package/lib/types/type-gir-variable.d.ts +1 -0
- package/lib/types/type-gir-variable.js +2 -0
- package/lib/types/type-gir-variable.js.map +1 -0
- package/lib/types/type-ts-element.d.ts +3 -0
- package/lib/types/type-ts-element.js +2 -0
- package/lib/types/type-ts-element.js.map +1 -0
- package/lib/types/type-ts-enumeration-member.d.ts +2 -0
- package/lib/types/type-ts-enumeration-member.js +2 -0
- package/lib/types/type-ts-enumeration-member.js.map +1 -0
- package/lib/types/type-ts-function.d.ts +1 -0
- package/lib/types/type-ts-function.js +2 -0
- package/lib/types/type-ts-function.js.map +1 -0
- package/lib/types/type-ts-property.d.ts +1 -0
- package/lib/types/type-ts-property.js +2 -0
- package/lib/types/type-ts-property.js.map +1 -0
- package/lib/types/user-config-load-result.d.ts +6 -0
- package/lib/types/user-config-load-result.js +2 -0
- package/lib/types/user-config-load-result.js.map +1 -0
- package/lib/types/user-config.d.ts +38 -0
- package/lib/types/user-config.js +2 -0
- package/lib/types/user-config.js.map +1 -0
- package/lib/utils.d.ts +88 -0
- package/lib/utils.js +189 -0
- package/lib/utils.js.map +1 -0
- package/package.json +72 -0
- package/src/commands/doc.ts +65 -0
- package/src/commands/generate.ts +86 -0
- package/src/commands/index.ts +3 -0
- package/src/commands/list.ts +96 -0
- package/src/config.ts +426 -0
- package/src/conflict-resolver.ts +1350 -0
- package/src/constants.ts +29 -0
- package/src/generation-handler.ts +79 -0
- package/src/generator.ts +10 -0
- package/src/gir-factory.ts +488 -0
- package/src/gir-module.ts +2816 -0
- package/src/html-doc-generator.ts +23 -0
- package/src/index.ts +17 -0
- package/src/injection/callbacks/gjs/Gio-2.0.ts +37 -0
- package/src/injection/callbacks/gjs/index.ts +5 -0
- package/src/injection/callbacks/index.ts +6 -0
- package/src/injection/callbacks/node-gtk/index.ts +3 -0
- package/src/injection/classes/GLib-2-0.ts +36 -0
- package/src/injection/classes/gjs/GLib-2.0.ts +75 -0
- package/src/injection/classes/gjs/GObject-2.0.ts +635 -0
- package/src/injection/classes/gjs/Gio-2.0.ts +219 -0
- package/src/injection/classes/gjs/index.ts +7 -0
- package/src/injection/classes/index.ts +7 -0
- package/src/injection/classes/node-gtk/GLib-2.0.ts +20 -0
- package/src/injection/classes/node-gtk/GObject-2.0.ts +67 -0
- package/src/injection/classes/node-gtk/Gdk-4.0.ts +33 -0
- package/src/injection/classes/node-gtk/Gio-2.0.ts +15 -0
- package/src/injection/classes/node-gtk/Graphene-1.0.ts +134 -0
- package/src/injection/classes/node-gtk/Gtk-3.0.ts +32 -0
- package/src/injection/classes/node-gtk/Gtk-4.0.ts +53 -0
- package/src/injection/classes/node-gtk/Pango-1.0.ts +32 -0
- package/src/injection/classes/node-gtk/index.ts +21 -0
- package/src/injection/index.ts +3 -0
- package/src/injection/injector.ts +179 -0
- package/src/logger.ts +134 -0
- package/src/messages.ts +68 -0
- package/src/module-loader.ts +573 -0
- package/src/start.ts +16 -0
- package/src/symtable.ts +70 -0
- package/src/template-processor.ts +170 -0
- package/src/transformation.ts +583 -0
- package/src/type-definition-generator.ts +1387 -0
- package/src/types/answer-version.ts +4 -0
- package/src/types/build-type.ts +1 -0
- package/src/types/class-parent.ts +12 -0
- package/src/types/config-flags.ts +5 -0
- package/src/types/conflict-child-element.ts +11 -0
- package/src/types/conflict-grouped-element.ts +7 -0
- package/src/types/conflict-grouped-elements.ts +5 -0
- package/src/types/construct-name.ts +11 -0
- package/src/types/dependency-map.ts +4 -0
- package/src/types/dependency.ts +14 -0
- package/src/types/environment.ts +1 -0
- package/src/types/generate-config.ts +31 -0
- package/src/types/generator-type.ts +4 -0
- package/src/types/gir-alias-element.ts +15 -0
- package/src/types/gir-annotation.ts +10 -0
- package/src/types/gir-any-element.ts +35 -0
- package/src/types/gir-any-type.ts +7 -0
- package/src/types/gir-array-type.ts +23 -0
- package/src/types/gir-bitfield-element.ts +20 -0
- package/src/types/gir-boolean.ts +1 -0
- package/src/types/gir-boxed-element.ts +19 -0
- package/src/types/gir-c-include.ts +7 -0
- package/src/types/gir-callable-attrs.ts +19 -0
- package/src/types/gir-callable-param-element.ts +45 -0
- package/src/types/gir-callable-param.ts +9 -0
- package/src/types/gir-callable-return.ts +25 -0
- package/src/types/gir-callback-element.ts +28 -0
- package/src/types/gir-class-element.ts +71 -0
- package/src/types/gir-constant-element.ts +17 -0
- package/src/types/gir-constructor-element.ts +18 -0
- package/src/types/gir-direction.ts +5 -0
- package/src/types/gir-doc-element.ts +73 -0
- package/src/types/gir-enum-element.ts +28 -0
- package/src/types/gir-field-element.ts +31 -0
- package/src/types/gir-function-element.ts +19 -0
- package/src/types/gir-implements.ts +9 -0
- package/src/types/gir-include.ts +9 -0
- package/src/types/gir-info-attrs.ts +16 -0
- package/src/types/gir-info-elements.ts +8 -0
- package/src/types/gir-instance-parameter.ts +25 -0
- package/src/types/gir-interface-element.ts +53 -0
- package/src/types/gir-member-element.ts +19 -0
- package/src/types/gir-method-element.ts +25 -0
- package/src/types/gir-module-resolved-by.ts +11 -0
- package/src/types/gir-modules-grouped-map.ts +5 -0
- package/src/types/gir-modules-grouped.ts +13 -0
- package/src/types/gir-namespace.ts +47 -0
- package/src/types/gir-package.ts +7 -0
- package/src/types/gir-prerequisite.ts +5 -0
- package/src/types/gir-property-element.ts +31 -0
- package/src/types/gir-record-element.ts +47 -0
- package/src/types/gir-repository.ts +20 -0
- package/src/types/gir-signal.ts +43 -0
- package/src/types/gir-transfer-ownership-type.ts +5 -0
- package/src/types/gir-transfer-ownership.ts +6 -0
- package/src/types/gir-type.ts +16 -0
- package/src/types/gir-union-element.ts +35 -0
- package/src/types/gir-unparsed-number.ts +2 -0
- package/src/types/gir-var-args.ts +6 -0
- package/src/types/gir-virtual-method.ts +22 -0
- package/src/types/index.ts +118 -0
- package/src/types/inheritance-table.ts +3 -0
- package/src/types/injection-callback.ts +20 -0
- package/src/types/injection-class.ts +30 -0
- package/src/types/injection-function.ts +23 -0
- package/src/types/injection-generic-parameter.ts +3 -0
- package/src/types/injection-instance-parameter.ts +3 -0
- package/src/types/injection-parameter.ts +9 -0
- package/src/types/injection-property.ts +7 -0
- package/src/types/injection-type.ts +3 -0
- package/src/types/injection.ts +6 -0
- package/src/types/local-name-check.ts +5 -0
- package/src/types/local-name-type.ts +1 -0
- package/src/types/local-name.ts +8 -0
- package/src/types/local-names.ts +5 -0
- package/src/types/module-type.ts +1 -0
- package/src/types/parsed-gir.ts +5 -0
- package/src/types/part-of-class.ts +9 -0
- package/src/types/part-of-module.ts +8 -0
- package/src/types/resolve-type.ts +4 -0
- package/src/types/sym-table-items.ts +5 -0
- package/src/types/transformation-case.ts +7 -0
- package/src/types/transformations.ts +12 -0
- package/src/types/ts-alias.ts +11 -0
- package/src/types/ts-callback-interface.ts +11 -0
- package/src/types/ts-callback.ts +21 -0
- package/src/types/ts-class.ts +109 -0
- package/src/types/ts-doc-tag.ts +23 -0
- package/src/types/ts-doc.ts +23 -0
- package/src/types/ts-enum.ts +15 -0
- package/src/types/ts-function.ts +59 -0
- package/src/types/ts-generic-parameter.ts +8 -0
- package/src/types/ts-instance-parameter.ts +4 -0
- package/src/types/ts-member.ts +11 -0
- package/src/types/ts-method.ts +6 -0
- package/src/types/ts-parameter.ts +20 -0
- package/src/types/ts-property.ts +22 -0
- package/src/types/ts-signal.ts +21 -0
- package/src/types/ts-type-name.ts +1 -0
- package/src/types/ts-type-separator.ts +1 -0
- package/src/types/ts-type.ts +25 -0
- package/src/types/ts-var.ts +21 -0
- package/src/types/type-gir-alias.ts +2 -0
- package/src/types/type-gir-class.ts +2 -0
- package/src/types/type-gir-element.ts +25 -0
- package/src/types/type-gir-enumeration-member.ts +2 -0
- package/src/types/type-gir-enumeration.ts +2 -0
- package/src/types/type-gir-function.ts +8 -0
- package/src/types/type-gir-interface.ts +2 -0
- package/src/types/type-gir-method.ts +2 -0
- package/src/types/type-gir-parameter.ts +1 -0
- package/src/types/type-gir-property.ts +2 -0
- package/src/types/type-gir-variable.ts +1 -0
- package/src/types/type-ts-element.ts +13 -0
- package/src/types/type-ts-enumeration-member.ts +2 -0
- package/src/types/type-ts-function.ts +1 -0
- package/src/types/type-ts-property.ts +1 -0
- package/src/types/user-config-load-result.ts +6 -0
- package/src/types/user-config.ts +39 -0
- package/src/utils.ts +217 -0
- package/templates/Cogl-2.0.d.ts +0 -0
- package/templates/Gjs/GObject-2.0.d.ts +238 -0
- package/templates/Gjs/Gio-2.0.d.ts +64 -0
- package/templates/Gjs/Gjs.d.ts +135 -0
- package/templates/Gjs/Gjs.js +21 -0
- package/templates/Gjs/cast.ts +52 -0
- package/templates/Gjs/index.d.ts +279 -0
- package/templates/Gjs/index.js +4 -0
- package/templates/Gjs/module.d.ts +10 -0
- package/templates/Gjs/module.js +16 -0
- package/templates/Granite-1.0.d.ts +7 -0
- package/templates/Granite-7.0.d.ts +7 -0
- package/templates/GstBase-0.10.d.ts +5 -0
- package/templates/RygelServer-2.6.d.ts +3 -0
- package/templates/node-gtk/GObject-2.0.d.ts +57 -0
- package/templates/node-gtk/index.d.ts +40 -0
- package/templates/node-gtk/index.js +9 -0
- package/templates/node-gtk/module.d.ts +10 -0
- package/templates/node-gtk/module.js +17 -0
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
3
|
+
*
|
|
4
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
5
|
+
* If you found a bug fix it in <%= APP_NAME %> itself or create a bug report on <%= APP_SOURCE %>
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import type * as Gjs from './Gjs.js'
|
|
9
|
+
<%_ for (const girModule of girModules) { _%>
|
|
10
|
+
<%_ if(useNamespace){ _%>
|
|
11
|
+
import type <%= girModule.importName %> from "./<%= girModule.packageName %>.js";
|
|
12
|
+
<%_ } else { _%>
|
|
13
|
+
import type * as <%= girModule.importName %> from "./<%= girModule.packageName %>.js";
|
|
14
|
+
<%_ } _%>
|
|
15
|
+
<%_ } _%>
|
|
16
|
+
|
|
17
|
+
// See also https://github.com/microsoft/TypeScript/blob/main/lib/lib.dom.d.ts
|
|
18
|
+
declare global {
|
|
19
|
+
function print(...args: any[]): void
|
|
20
|
+
function printerr(...args: any[]): void
|
|
21
|
+
function log(message: any): void
|
|
22
|
+
function logError(exception: object, message?: any): void
|
|
23
|
+
function logError(message?: any): void
|
|
24
|
+
|
|
25
|
+
interface Console {
|
|
26
|
+
/**
|
|
27
|
+
* Logs a critical message if the condition is not truthy.
|
|
28
|
+
* {@link console.error()} for additional information.
|
|
29
|
+
*
|
|
30
|
+
* @param condition a boolean condition which, if false, causes
|
|
31
|
+
* the log to print
|
|
32
|
+
* @param data formatting substitutions, if applicable
|
|
33
|
+
* @returns
|
|
34
|
+
*/
|
|
35
|
+
assert(condition: boolean, ...data: any[]): void
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Resets grouping and clears the terminal on systems supporting ANSI
|
|
39
|
+
* terminal control sequences.
|
|
40
|
+
*
|
|
41
|
+
* In file-based stdout or systems which do not support clearing,
|
|
42
|
+
* console.clear() has no visual effect.
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
clear(): void
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Logs a message with severity equal to {@link GLib20.LogLevelFlags.DEBUG}.
|
|
49
|
+
*
|
|
50
|
+
* @param {...any} data formatting substitutions, if applicable
|
|
51
|
+
*/
|
|
52
|
+
debug(...data: any[]): void
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Logs a message with severity equal to {@link GLib20.LogLevelFlags.CRITICAL}.
|
|
56
|
+
* Does not use {@link GLib20.LogLevelFlags.ERROR} to avoid asserting and
|
|
57
|
+
* forcibly shutting down the application.
|
|
58
|
+
*
|
|
59
|
+
* @param data formatting substitutions, if applicable
|
|
60
|
+
*/
|
|
61
|
+
error(...data: any[]): void
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Logs a message with severity equal to {@link GLib20.LogLevelFlags.INFO}.
|
|
65
|
+
*
|
|
66
|
+
* @param data formatting substitutions, if applicable
|
|
67
|
+
*/
|
|
68
|
+
info(...data: any[]): void
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Logs a message with severity equal to {@link GLib20.LogLevelFlags.MESSAGE}.
|
|
72
|
+
*
|
|
73
|
+
* @param data formatting substitutions, if applicable
|
|
74
|
+
*/
|
|
75
|
+
log(...data: any[]): void
|
|
76
|
+
|
|
77
|
+
// 1.1.7 table(tabularData, properties)
|
|
78
|
+
table(tabularData: any, _properties: never): void
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @param data formatting substitutions, if applicable
|
|
82
|
+
*/
|
|
83
|
+
trace(...data: any[]): void
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @param data formatting substitutions, if applicable
|
|
87
|
+
*/
|
|
88
|
+
warn(...data: any[]): void
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @param item an item to format generically
|
|
92
|
+
* @param [options] any additional options for the formatter. Unused
|
|
93
|
+
* in our implementation.
|
|
94
|
+
*/
|
|
95
|
+
dir(item: object, options: never): void
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @param data formatting substitutions, if applicable
|
|
99
|
+
*/
|
|
100
|
+
dirxml(...data: any[]): void
|
|
101
|
+
|
|
102
|
+
// 1.2 Counting functions
|
|
103
|
+
// https://console.spec.whatwg.org/#counting
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Logs how many times console.count(label) has been called with a given
|
|
107
|
+
* label.
|
|
108
|
+
* {@link console.countReset()} for resetting a count.
|
|
109
|
+
*
|
|
110
|
+
* @param label unique identifier for this action
|
|
111
|
+
*/
|
|
112
|
+
count(label: string): void
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @param label the unique label to reset the count for
|
|
116
|
+
*/
|
|
117
|
+
countReset(label: string): void
|
|
118
|
+
|
|
119
|
+
// 1.3 Grouping functions
|
|
120
|
+
// https://console.spec.whatwg.org/#grouping
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @param data formatting substitutions, if applicable
|
|
124
|
+
*/
|
|
125
|
+
group(...data: any[]): void
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Alias for console.group()
|
|
129
|
+
*
|
|
130
|
+
* @param {...any} data formatting substitutions, if applicable
|
|
131
|
+
*/
|
|
132
|
+
groupCollapsed(...data: any[]): void
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
*/
|
|
136
|
+
groupEnd(): void
|
|
137
|
+
|
|
138
|
+
// 1.4 Timing functions
|
|
139
|
+
// https://console.spec.whatwg.org/#timing
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @param label unique identifier for this action, pass to
|
|
143
|
+
* console.timeEnd() to complete
|
|
144
|
+
*/
|
|
145
|
+
time(label: string): void
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Logs the time since the last call to console.time(label) where label is
|
|
149
|
+
* the same.
|
|
150
|
+
*
|
|
151
|
+
* @param label unique identifier for this action, pass to
|
|
152
|
+
* console.timeEnd() to complete
|
|
153
|
+
* @param data string substitutions, if applicable
|
|
154
|
+
*/
|
|
155
|
+
timeLog(label: string, ...data: any[]): void
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Logs the time since the last call to console.time(label) and completes
|
|
159
|
+
* the action.
|
|
160
|
+
* Call console.time(label) again to re-measure.
|
|
161
|
+
*
|
|
162
|
+
* @param label unique identifier for this action
|
|
163
|
+
*/
|
|
164
|
+
timeEnd(label: string): void
|
|
165
|
+
|
|
166
|
+
// Non-standard functions which are de-facto standards.
|
|
167
|
+
// Similar to Node, we define these as no-ops for now.
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @deprecated Not implemented in GJS
|
|
171
|
+
*
|
|
172
|
+
* @param _label unique identifier for this action, pass to
|
|
173
|
+
* console.profileEnd to complete
|
|
174
|
+
*/
|
|
175
|
+
profile(_label: string): void
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* @deprecated Not implemented in GJS
|
|
179
|
+
*
|
|
180
|
+
* @param _label unique identifier for this action
|
|
181
|
+
*/
|
|
182
|
+
profileEnd(_label: string): void
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @deprecated Not implemented in GJS
|
|
186
|
+
*
|
|
187
|
+
* @param _label unique identifier for this action
|
|
188
|
+
*/
|
|
189
|
+
timeStamp(_label: string): void
|
|
190
|
+
|
|
191
|
+
// GJS-specific extensions for integrating with GLib structured logging
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* @param logDomain the GLib log domain this Console should print
|
|
195
|
+
* with. Defaults to 'Gjs-Console'.
|
|
196
|
+
*/
|
|
197
|
+
setLogDomain(logDomain: string): void
|
|
198
|
+
|
|
199
|
+
logDomain: string
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
const console: Console;
|
|
203
|
+
|
|
204
|
+
interface BooleanConstructor {
|
|
205
|
+
$gtype: GObject20.GType<boolean>
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
interface NumberConstructor {
|
|
209
|
+
$gtype: GObject20.GType<number>
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
interface StringConstructor {
|
|
213
|
+
$gtype: GObject20.GType<string>
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
const ARGV: string[]
|
|
217
|
+
|
|
218
|
+
// Timers
|
|
219
|
+
// See https://gitlab.gnome.org/GNOME/gjs/-/blob/master/modules/esm/_timers.js
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @version Gjs 1.71.1
|
|
223
|
+
* @param callback a callback function
|
|
224
|
+
* @param delay the duration in milliseconds to wait before running callback
|
|
225
|
+
* @param args arguments to pass to callback
|
|
226
|
+
*/
|
|
227
|
+
function setTimeout(callback: (...args: any[]) => any, delay?: number, ...args: any[]): GLib20.Source
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* @version Gjs 1.71.1
|
|
231
|
+
* @param callback a callback function
|
|
232
|
+
* @param delay the duration in milliseconds to wait between calling callback
|
|
233
|
+
* @param args arguments to pass to callback
|
|
234
|
+
*/
|
|
235
|
+
function setInterval(callback: (...args: any[]) => any, delay?: number, ...args: any[]): GLib20.Source
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* @version Gjs 1.71.1
|
|
239
|
+
* @param timeout the timeout to clear
|
|
240
|
+
*/
|
|
241
|
+
function clearTimeout(timeout: GLib20.Source): void
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* @version Gjs 1.71.1
|
|
245
|
+
* @param timeout the timeout to clear
|
|
246
|
+
*/
|
|
247
|
+
function clearInterval(timeout: GLib20.Source): void
|
|
248
|
+
|
|
249
|
+
const imports: typeof Gjs & {
|
|
250
|
+
gi: {
|
|
251
|
+
<%_ for (const girModuleGroup of girModulesGrouped) { _%>
|
|
252
|
+
<%= girModuleGroup.namespace %>: <%_ for (const [i, girModule] of girModuleGroup.modules.entries()) { _%>
|
|
253
|
+
typeof <%= girModule.module.importName %>
|
|
254
|
+
<%_ if (i !== girModuleGroup.modules.length - 1) { _%>
|
|
255
|
+
|
|
|
256
|
+
<%_ } _%>
|
|
257
|
+
<%_ } _%>
|
|
258
|
+
<%_ } _%>
|
|
259
|
+
versions: {
|
|
260
|
+
<%_ for (const girModuleGroup of girModulesGrouped) { _%>
|
|
261
|
+
<%= girModuleGroup.namespace %>: <%_ for (const [i, girModule] of girModuleGroup.modules.entries()) { _%>
|
|
262
|
+
'<%= girModule.module.version %>'
|
|
263
|
+
<%_ if (i !== girModuleGroup.modules.length - 1) { _%>
|
|
264
|
+
|
|
|
265
|
+
<%_ } _%>
|
|
266
|
+
<%_ } _%>
|
|
267
|
+
<%_ } _%>
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
lang: typeof Gjs.Lang
|
|
271
|
+
system: typeof Gjs.System
|
|
272
|
+
package: typeof Gjs.Package
|
|
273
|
+
mainloop: typeof Gjs.Mainloop
|
|
274
|
+
searchPath: string[]
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
declare const _imports: typeof imports
|
|
279
|
+
export default _imports
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<% if (noCheck) { -%>
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
<% } -%>
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
7
|
+
*
|
|
8
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
9
|
+
* If you found a bug fix it in <%= APP_NAME %> itself or create a bug report on <%= APP_SOURCE %>
|
|
10
|
+
*/
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<% if(moduleType === 'esm'){ %>
|
|
2
|
+
// @ts-expect-error
|
|
3
|
+
import <%= name %> from 'gi://<%= name %>?version=<%= version %>';
|
|
4
|
+
export { <%= name %> };
|
|
5
|
+
export default <%= name %>;
|
|
6
|
+
<% } else { %>
|
|
7
|
+
imports.gi.versions.<%= name %> = '<%= version %>'
|
|
8
|
+
const <%= name %> = imports.gi.<%= name %>;
|
|
9
|
+
<% if(useNamespace){ %>
|
|
10
|
+
module.exports = { <%= name %> };
|
|
11
|
+
exports.default = <%= name %>;
|
|
12
|
+
<% } else { %>
|
|
13
|
+
module.exports = <%= name %>;
|
|
14
|
+
<% } %>
|
|
15
|
+
<% } %>
|
|
16
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Workaround
|
|
2
|
+
/** @ignore */
|
|
3
|
+
export module GraniteServicesSettingsSerializable {
|
|
4
|
+
export interface ConstructorProperties extends ServicesSettingsSerializable.ConstructorProperties {}
|
|
5
|
+
}
|
|
6
|
+
/** @ignore */
|
|
7
|
+
export interface GraniteServicesSettingsSerializable extends ServicesSettingsSerializable {}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Workaround
|
|
2
|
+
/** @ignore */
|
|
3
|
+
export module GraniteServicesSettingsSerializable {
|
|
4
|
+
export interface ConstructorProperties extends ServicesSettingsSerializable.ConstructorProperties {}
|
|
5
|
+
}
|
|
6
|
+
/** @ignore */
|
|
7
|
+
export interface GraniteServicesSettingsSerializable extends ServicesSettingsSerializable {}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// See https://github.com/romgrk/node-gtk/blob/master/lib/overrides/GObject.js
|
|
2
|
+
|
|
3
|
+
export type GType<T = unknown> = {
|
|
4
|
+
__type__(arg: never): T
|
|
5
|
+
name: string
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
// TODO: What about the generated class Closure
|
|
9
|
+
export type TClosure<R = any, P = any> = (...args: P[]) => R;
|
|
10
|
+
|
|
11
|
+
export let TYPE_INVALID : 0n
|
|
12
|
+
export let TYPE_NONE : GType<undefined>;
|
|
13
|
+
export let TYPE_INTERFACE : GType<unknown>;
|
|
14
|
+
export let TYPE_CHAR : GType<string>;
|
|
15
|
+
export let TYPE_UCHAR : GType<string>;
|
|
16
|
+
export let TYPE_BOOLEAN : GType<boolean>;
|
|
17
|
+
export let TYPE_INT : GType<number>;
|
|
18
|
+
export let TYPE_UINT : GType<number>;
|
|
19
|
+
export let TYPE_LONG : GType<number>;
|
|
20
|
+
export let TYPE_ULONG : GType<number>;
|
|
21
|
+
export let TYPE_INT64 : GType<number>;
|
|
22
|
+
export let TYPE_UINT64 : GType<number>;
|
|
23
|
+
export let TYPE_ENUM : GType<number>;
|
|
24
|
+
export let TYPE_FLAGS : GType<number>;
|
|
25
|
+
export let TYPE_FLOAT : GType<number>;
|
|
26
|
+
export let TYPE_DOUBLE : GType<number>;
|
|
27
|
+
export let TYPE_STRING : GType<string>;
|
|
28
|
+
export let TYPE_POINTER : GType<undefined>;
|
|
29
|
+
export let TYPE_BOXED : GType<unknown>;
|
|
30
|
+
export let TYPE_PARAM : GType<unknown>;
|
|
31
|
+
export let TYPE_OBJECT : GType<object>;
|
|
32
|
+
export let TYPE_GTYPE : GType<unknown>;
|
|
33
|
+
export let TYPE_VARIANT : GType<unknown>;
|
|
34
|
+
export let TYPE_UNICHAR : GType<number>;
|
|
35
|
+
|
|
36
|
+
export function typeFromName(name: 'void'): typeof TYPE_INVALID
|
|
37
|
+
export function typeFromName(name: 'GInterface'): typeof TYPE_INTERFACE
|
|
38
|
+
export function typeFromName(name: 'gchar'): typeof TYPE_CHAR
|
|
39
|
+
export function typeFromName(name: 'guchar'): typeof TYPE_UCHAR
|
|
40
|
+
export function typeFromName(name: 'gboolean'): typeof TYPE_BOOLEAN
|
|
41
|
+
export function typeFromName(name: 'gint'): typeof TYPE_INT
|
|
42
|
+
export function typeFromName(name: 'guint'): typeof TYPE_UINT
|
|
43
|
+
export function typeFromName(name: 'glong'): typeof TYPE_LONG
|
|
44
|
+
export function typeFromName(name: 'gulong'): typeof TYPE_ULONG
|
|
45
|
+
export function typeFromName(name: 'gint64'): typeof TYPE_INT64
|
|
46
|
+
export function typeFromName(name: 'guint64'): typeof TYPE_UINT64
|
|
47
|
+
export function typeFromName(name: 'GEnum'): typeof TYPE_ENUM
|
|
48
|
+
export function typeFromName(name: 'GFlags'): typeof TYPE_FLAGS
|
|
49
|
+
export function typeFromName(name: 'gfloat'): typeof TYPE_FLOAT
|
|
50
|
+
export function typeFromName(name: 'gdouble'): typeof TYPE_DOUBLE
|
|
51
|
+
export function typeFromName(name: 'gchararray'): typeof TYPE_STRING
|
|
52
|
+
export function typeFromName(name: 'gpointer'): typeof TYPE_POINTER
|
|
53
|
+
export function typeFromName(name: 'GBoxed'): typeof TYPE_BOXED
|
|
54
|
+
export function typeFromName(name: 'GParam'): typeof TYPE_PARAM
|
|
55
|
+
export function typeFromName(name: 'GObject'): typeof TYPE_OBJECT
|
|
56
|
+
export function typeFromName(name: 'GType'): typeof TYPE_GTYPE
|
|
57
|
+
export function typeFromName(name: 'GVariant'): typeof TYPE_VARIANT
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/triple-slash-reference */
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* Type Definitions for node-gtk (https://github.com/romgrk/node-gtk)
|
|
5
|
+
*
|
|
6
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
7
|
+
* If you found a bug fix it in <%= APP_NAME %> itself or create a bug report on <%= APP_SOURCE %>
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
<%_ for (const girModule of girModules) { _%>
|
|
11
|
+
<%_ if (buildType === 'lib') { _%>
|
|
12
|
+
<% if(useNamespace){ %>
|
|
13
|
+
import type <%= girModule.importName %> from "./<%= girModule.packageName %>.js";
|
|
14
|
+
<% } else { %>
|
|
15
|
+
import type * as <%= girModule.importName %> from './<%= girModule.packageName %>.js';
|
|
16
|
+
<% } %>
|
|
17
|
+
<%_ } else if (buildType === 'types') { _%>
|
|
18
|
+
import type <%= girModule.importName %> from "./<%= girModule.packageName %>.js";
|
|
19
|
+
<%_ } _%>
|
|
20
|
+
<%_ } _%>
|
|
21
|
+
|
|
22
|
+
<%_ if (buildType === 'types') { _%>
|
|
23
|
+
declare module 'node-gtk' {
|
|
24
|
+
<%_ } _%>
|
|
25
|
+
export function require(ns: string, ver?: string): any;
|
|
26
|
+
<%_ for (const girModule of girModules) { _%>
|
|
27
|
+
export function require(ns: '<%= girModule.namespace %>', ver: '<%= girModule.version %>'): typeof <%= girModule.importName %>;
|
|
28
|
+
<%_ } _%>
|
|
29
|
+
export function startLoop(): void;
|
|
30
|
+
export function registerClass(object: any): void
|
|
31
|
+
|
|
32
|
+
declare const gi: {
|
|
33
|
+
require: typeof require,
|
|
34
|
+
startLoop: typeof startLoop,
|
|
35
|
+
registerClass: typeof registerClass,
|
|
36
|
+
}
|
|
37
|
+
export default gi
|
|
38
|
+
<%_ if (buildType === 'types') { _%>
|
|
39
|
+
}
|
|
40
|
+
<%_ } _%>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<% if (noCheck) { -%>
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
<% } -%>
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* Type Definitions for node-gtk (https://github.com/romgrk/node-gtk)
|
|
7
|
+
*
|
|
8
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
9
|
+
* If you found a bug fix it in <%= APP_NAME %> itself or create a bug report on <%= APP_SOURCE %>
|
|
10
|
+
*/
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<% if(moduleType === 'esm'){ %>
|
|
2
|
+
import { require as giRequire } from 'node-gtk';
|
|
3
|
+
const <%= name %> = giRequire('<%= name %>', '<%= version %>');
|
|
4
|
+
export { <%= name %> };
|
|
5
|
+
export default <%= name %>;
|
|
6
|
+
<% } else { %>
|
|
7
|
+
const { require: giRequire } = require('node-gtk');
|
|
8
|
+
const <%= name %> = giRequire('<%= name %>', '<%= version %>');
|
|
9
|
+
<% if(useNamespace){ %>
|
|
10
|
+
module.exports = { <%= name %> };
|
|
11
|
+
exports.default = <%= name %>;
|
|
12
|
+
<% } else { %>
|
|
13
|
+
module.exports = <%= name %>;
|
|
14
|
+
<% } %>
|
|
15
|
+
<% } %>
|
|
16
|
+
|
|
17
|
+
|