@ts-for-gir/lib 3.2.9 → 4.0.0-beta.1
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/conflict-resolver.d.ts +2 -39
- package/lib/conflict-resolver.js +4 -228
- package/lib/conflict-resolver.js.map +1 -1
- package/lib/constants.d.ts +3 -7
- package/lib/constants.js +6 -16
- package/lib/constants.js.map +1 -1
- package/lib/dependency-manager.d.ts +3 -5
- package/lib/dependency-manager.js +10 -17
- 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/gio.d.ts +2 -0
- package/lib/generators/dts/gio.js +9 -0
- package/lib/generators/dts/gio.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 +8 -0
- package/lib/generators/dts-inline.js +59 -0
- package/lib/generators/dts-inline.js.map +1 -0
- package/lib/generators/dts-modules.d.ts +8 -0
- package/lib/generators/dts-modules.js +100 -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 +256 -0
- package/lib/generators/json.js +869 -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 +259 -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 +1132 -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 +556 -0
- package/lib/gir/util.js.map +1 -0
- package/lib/gir-factory.d.ts +2 -2
- package/lib/gir-factory.js +8 -44
- package/lib/gir-factory.js.map +1 -1
- package/lib/gir-module.d.ts +61 -221
- package/lib/gir-module.js +382 -2095
- package/lib/gir-module.js.map +1 -1
- package/lib/gir.d.ts +251 -0
- package/lib/gir.js +638 -0
- package/lib/gir.js.map +1 -0
- package/lib/index.d.ts +5 -3
- package/lib/index.js +7 -3
- package/lib/index.js.map +1 -1
- package/lib/injection/callbacks/index.d.ts +0 -1
- package/lib/injection/callbacks/index.js +0 -1
- package/lib/injection/callbacks/index.js.map +1 -1
- package/lib/injection/classes/index.d.ts +0 -1
- package/lib/injection/classes/index.js +0 -1
- package/lib/injection/classes/index.js.map +1 -1
- package/lib/injection/injector.d.ts +2 -3
- package/lib/injection/injector.js +6 -8
- package/lib/injection/injector.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.js.map +1 -1
- package/lib/logger.d.ts +1 -3
- package/lib/logger.js +3 -8
- package/lib/logger.js.map +1 -1
- package/lib/messages.d.ts +1 -4
- package/lib/messages.js +1 -3
- package/lib/messages.js.map +1 -1
- package/lib/registry.d.ts +9 -0
- package/lib/registry.js +13 -0
- package/lib/registry.js.map +1 -0
- package/lib/symtable.js +1 -1
- package/lib/symtable.js.map +1 -1
- package/lib/transformation.d.ts +4 -5
- package/lib/transformation.js +31 -127
- package/lib/transformation.js.map +1 -1
- package/lib/types/generate-config.d.ts +4 -11
- 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-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 +3 -54
- package/lib/types/index.js +3 -54
- package/lib/types/index.js.map +1 -1
- package/lib/types/parsed-gir.d.ts +3 -2
- package/lib/types/transformations.d.ts +1 -8
- package/lib/types/user-config.d.ts +0 -11
- package/lib/types.d.ts +23 -0
- package/lib/types.js +2 -0
- package/lib/types.js.map +1 -0
- package/lib/util.d.ts +20 -0
- package/lib/util.js +67 -0
- package/lib/util.js.map +1 -0
- package/lib/utils.d.ts +2 -30
- package/lib/utils.js +0 -56
- 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 +15 -11
- 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/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/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/environment.d.ts +0 -1
- package/lib/types/environment.js +0 -2
- package/lib/types/environment.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/module-type.d.ts +0 -1
- package/lib/types/module-type.js +0 -2
- package/lib/types/module-type.js.map +0 -1
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { TypeIdentifier, Generic } from "../gir.js";
|
|
2
|
+
import { TypeExpression } from "../gir.js";
|
|
3
|
+
import { IntrospectedBase, IntrospectedClassMember, IntrospectedNamespaceMember, Options } from "./base.js";
|
|
4
|
+
import { GirInterfaceElement, GirClassElement, GirRecordElement, GirUnionElement, ClassStructTypeIdentifier } from "../index.js";
|
|
5
|
+
import { IntrospectedClassFunction, IntrospectedVirtualClassFunction, IntrospectedStaticClassFunction, IntrospectedConstructor, IntrospectedDirectAllocationConstructor, IntrospectedClassCallback } from "./function.js";
|
|
6
|
+
import { IntrospectedProperty, IntrospectedField } from "./property.js";
|
|
7
|
+
import { IntrospectedNamespace } from "./namespace.js";
|
|
8
|
+
import { IntrospectedSignal } from "./signal.js";
|
|
9
|
+
import { FormatGenerator } from "../generators/generator.js";
|
|
10
|
+
import { LoadOptions } from "../types.js";
|
|
11
|
+
import { GirVisitor } from "../visitor.js";
|
|
12
|
+
export declare enum FilterBehavior {
|
|
13
|
+
DELETE = 0,
|
|
14
|
+
PRESERVE = 1
|
|
15
|
+
}
|
|
16
|
+
export declare function filterConflicts<T extends IntrospectedClassMember | IntrospectedClassFunction | IntrospectedProperty>(ns: IntrospectedNamespace, c: IntrospectedBaseClass, elements: T[], behavior?: FilterBehavior): T[];
|
|
17
|
+
export declare function filterFunctionConflict<T extends IntrospectedStaticClassFunction | IntrospectedVirtualClassFunction | IntrospectedClassFunction | IntrospectedConstructor>(ns: IntrospectedNamespace, base: IntrospectedBaseClass, elements: T[], conflict_ids: string[]): T[];
|
|
18
|
+
export declare function promisifyFunctions(functions: IntrospectedClassFunction[]): IntrospectedClassFunction<IntrospectedBaseClass | import("./enum.js").IntrospectedEnum>[];
|
|
19
|
+
export declare const enum ClassInjectionMember {
|
|
20
|
+
MEMBER = "member",
|
|
21
|
+
CONSTRUCTOR = "_constructor",
|
|
22
|
+
PROPERTY = "prop",
|
|
23
|
+
FIELD = "field",
|
|
24
|
+
MAIN_CONSTRUCTOR = "constructor"
|
|
25
|
+
}
|
|
26
|
+
export interface ClassDefinition {
|
|
27
|
+
superType: TypeIdentifier;
|
|
28
|
+
interfaces: TypeIdentifier[];
|
|
29
|
+
mainConstructor: IntrospectedConstructor;
|
|
30
|
+
constructors: IntrospectedConstructor[];
|
|
31
|
+
members: IntrospectedClassFunction[];
|
|
32
|
+
props: IntrospectedProperty[];
|
|
33
|
+
fields: IntrospectedField[];
|
|
34
|
+
callbacks: IntrospectedClassCallback[];
|
|
35
|
+
}
|
|
36
|
+
export interface ResolutionNode {
|
|
37
|
+
identifier: TypeIdentifier;
|
|
38
|
+
node: IntrospectedBaseClass;
|
|
39
|
+
}
|
|
40
|
+
export interface InterfaceResolution extends ResolutionNode, Iterable<InterfaceResolution | ClassResolution> {
|
|
41
|
+
extends(): InterfaceResolution | ClassResolution | undefined;
|
|
42
|
+
node: IntrospectedInterface;
|
|
43
|
+
}
|
|
44
|
+
export interface ClassResolution extends ResolutionNode, Iterable<ClassResolution> {
|
|
45
|
+
extends(): ClassResolution | undefined;
|
|
46
|
+
implements(): InterfaceResolution[];
|
|
47
|
+
node: IntrospectedClass;
|
|
48
|
+
}
|
|
49
|
+
export interface RecordResolution extends ResolutionNode, Iterable<RecordResolution> {
|
|
50
|
+
extends(): RecordResolution | undefined;
|
|
51
|
+
node: IntrospectedRecord;
|
|
52
|
+
}
|
|
53
|
+
export declare abstract class IntrospectedBaseClass extends IntrospectedNamespaceMember {
|
|
54
|
+
/**
|
|
55
|
+
* Used to add a TypeScript index signature to a class
|
|
56
|
+
*
|
|
57
|
+
* NOTE: This should probably be migrated into the TypeScript generator itself.
|
|
58
|
+
*/
|
|
59
|
+
__ts__indexSignature?: string;
|
|
60
|
+
superType: TypeIdentifier | null;
|
|
61
|
+
mainConstructor: null | IntrospectedConstructor | IntrospectedDirectAllocationConstructor;
|
|
62
|
+
constructors: IntrospectedConstructor[];
|
|
63
|
+
members: IntrospectedClassFunction[];
|
|
64
|
+
props: IntrospectedProperty[];
|
|
65
|
+
fields: IntrospectedField[];
|
|
66
|
+
callbacks: IntrospectedClassCallback[];
|
|
67
|
+
generics: Generic[];
|
|
68
|
+
constructor(options: Options<{
|
|
69
|
+
name: string;
|
|
70
|
+
namespace: IntrospectedNamespace;
|
|
71
|
+
}> & Partial<ClassDefinition>);
|
|
72
|
+
abstract accept(visitor: GirVisitor): IntrospectedBaseClass;
|
|
73
|
+
abstract copy(options?: {
|
|
74
|
+
parent?: undefined;
|
|
75
|
+
constructors?: IntrospectedConstructor[];
|
|
76
|
+
members?: IntrospectedClassFunction[];
|
|
77
|
+
props?: IntrospectedProperty[];
|
|
78
|
+
fields?: IntrospectedField[];
|
|
79
|
+
callbacks?: IntrospectedClassCallback[];
|
|
80
|
+
}): IntrospectedBaseClass;
|
|
81
|
+
getGenericName: () => string;
|
|
82
|
+
abstract resolveParents(): RecordResolution | InterfaceResolution | ClassResolution;
|
|
83
|
+
abstract someParent(predicate: (b: IntrospectedBaseClass) => boolean): boolean;
|
|
84
|
+
abstract findParent(predicate: (b: IntrospectedBaseClass) => boolean): IntrospectedBaseClass | undefined;
|
|
85
|
+
abstract findParentMap<K>(predicate: (b: IntrospectedBaseClass) => K | undefined): K | undefined;
|
|
86
|
+
addGeneric(definition: {
|
|
87
|
+
deriveFrom?: TypeIdentifier;
|
|
88
|
+
default?: TypeExpression;
|
|
89
|
+
constraint?: TypeExpression;
|
|
90
|
+
propagate?: boolean;
|
|
91
|
+
}): void;
|
|
92
|
+
getType(): TypeIdentifier;
|
|
93
|
+
static fromXML(element: GirClassElement | GirInterfaceElement | GirRecordElement, ns: IntrospectedNamespace, options: LoadOptions): IntrospectedBaseClass;
|
|
94
|
+
abstract asString<T = string>(generator: FormatGenerator<T>): T;
|
|
95
|
+
}
|
|
96
|
+
type ClassMember = IntrospectedClassMember | IntrospectedClassFunction | IntrospectedProperty;
|
|
97
|
+
export declare class IntrospectedClass extends IntrospectedBaseClass {
|
|
98
|
+
signals: IntrospectedSignal[];
|
|
99
|
+
interfaces: TypeIdentifier[];
|
|
100
|
+
isAbstract: boolean;
|
|
101
|
+
mainConstructor: null | IntrospectedConstructor;
|
|
102
|
+
private _staticDefinition;
|
|
103
|
+
constructor(name: string, namespace: IntrospectedNamespace);
|
|
104
|
+
accept(visitor: GirVisitor): IntrospectedClass;
|
|
105
|
+
hasInstanceSymbol<S extends {
|
|
106
|
+
name: string;
|
|
107
|
+
}>(s: S): boolean;
|
|
108
|
+
someParent(predicate: (p: IntrospectedClass | IntrospectedInterface) => boolean): boolean;
|
|
109
|
+
findParent(predicate: (p: IntrospectedClass | IntrospectedInterface) => boolean): IntrospectedClass | IntrospectedInterface | undefined;
|
|
110
|
+
findParentMap<K>(predicate: (p: IntrospectedClass | IntrospectedInterface) => K | undefined): K | undefined;
|
|
111
|
+
implementedProperties(potentialConflicts?: IntrospectedBase<never>[]): IntrospectedProperty[];
|
|
112
|
+
implementedMethods(potentialConflicts?: ClassMember[]): IntrospectedClassFunction<IntrospectedBaseClass | import("./enum.js").IntrospectedEnum>[];
|
|
113
|
+
resolveParents(): ClassResolution;
|
|
114
|
+
copy(options?: {
|
|
115
|
+
parent?: undefined;
|
|
116
|
+
signals?: IntrospectedSignal[];
|
|
117
|
+
constructors?: IntrospectedConstructor[];
|
|
118
|
+
members?: IntrospectedClassFunction[];
|
|
119
|
+
props?: IntrospectedProperty[];
|
|
120
|
+
fields?: IntrospectedField[];
|
|
121
|
+
callbacks?: IntrospectedClassCallback[];
|
|
122
|
+
}): IntrospectedClass;
|
|
123
|
+
get staticDefinition(): string | null;
|
|
124
|
+
static fromXML(element: GirClassElement, ns: IntrospectedNamespace, options: LoadOptions): IntrospectedClass;
|
|
125
|
+
registerStaticDefinition(typeStruct: string): void;
|
|
126
|
+
asString<T extends FormatGenerator<unknown>>(generator: T): ReturnType<T["generateClass"]>;
|
|
127
|
+
}
|
|
128
|
+
export declare class IntrospectedRecord extends IntrospectedBaseClass {
|
|
129
|
+
private _isForeign;
|
|
130
|
+
private _structFor;
|
|
131
|
+
private _isSimple;
|
|
132
|
+
private _isSimpleWithoutPointers;
|
|
133
|
+
isForeign(): boolean;
|
|
134
|
+
get structFor(): ClassStructTypeIdentifier | null;
|
|
135
|
+
getType(): TypeIdentifier;
|
|
136
|
+
someParent(predicate: (p: IntrospectedRecord) => boolean): boolean;
|
|
137
|
+
findParent(predicate: (p: IntrospectedRecord) => boolean): IntrospectedRecord | undefined;
|
|
138
|
+
findParentMap<K>(predicate: (p: IntrospectedRecord) => K | undefined): K | undefined;
|
|
139
|
+
accept(visitor: GirVisitor): IntrospectedRecord;
|
|
140
|
+
resolveParents(): RecordResolution;
|
|
141
|
+
copy(options?: {
|
|
142
|
+
parent?: undefined;
|
|
143
|
+
constructors?: IntrospectedConstructor[];
|
|
144
|
+
members?: IntrospectedClassFunction[];
|
|
145
|
+
props?: IntrospectedProperty[];
|
|
146
|
+
fields?: IntrospectedField[];
|
|
147
|
+
callbacks?: IntrospectedClassCallback[];
|
|
148
|
+
}): IntrospectedRecord;
|
|
149
|
+
static foreign(name: string, namespace: IntrospectedNamespace): IntrospectedRecord;
|
|
150
|
+
static fromXML(element: GirRecordElement | GirUnionElement, namespace: IntrospectedNamespace, options: LoadOptions): IntrospectedRecord;
|
|
151
|
+
/**
|
|
152
|
+
* Calculate if a type expression is "simple" without pointers
|
|
153
|
+
*/
|
|
154
|
+
isSimpleTypeWithoutPointers(typeContainer: TypeExpression): boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Calculate if a type expression is "simple"
|
|
157
|
+
*/
|
|
158
|
+
isSimpleType(typeContainer: TypeExpression): boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Check if a record is "simple" and can be constructed by GJS
|
|
161
|
+
*/
|
|
162
|
+
isSimple(): boolean;
|
|
163
|
+
isSimpleWithoutPointers(): string | null;
|
|
164
|
+
asString<T extends FormatGenerator<unknown>>(generator: T): ReturnType<T["generateRecord"]>;
|
|
165
|
+
}
|
|
166
|
+
export declare class GirComplexRecord extends IntrospectedRecord {
|
|
167
|
+
isSimple(): boolean;
|
|
168
|
+
}
|
|
169
|
+
export declare class IntrospectedInterface extends IntrospectedBaseClass {
|
|
170
|
+
noParent: boolean;
|
|
171
|
+
mainConstructor: null | IntrospectedConstructor;
|
|
172
|
+
copy(options?: {
|
|
173
|
+
parent?: undefined;
|
|
174
|
+
noParent?: boolean;
|
|
175
|
+
constructors?: IntrospectedConstructor[];
|
|
176
|
+
members?: IntrospectedClassFunction[];
|
|
177
|
+
props?: IntrospectedProperty[];
|
|
178
|
+
fields?: IntrospectedField[];
|
|
179
|
+
callbacks?: IntrospectedClassCallback[];
|
|
180
|
+
}): IntrospectedInterface;
|
|
181
|
+
someParent(predicate: (p: IntrospectedClass | IntrospectedInterface) => boolean): boolean;
|
|
182
|
+
findParent(predicate: (p: IntrospectedClass | IntrospectedInterface) => boolean): IntrospectedInterface | IntrospectedClass | undefined;
|
|
183
|
+
findParentMap<K>(predicate: (p: IntrospectedClass | IntrospectedInterface) => K | undefined): K | undefined;
|
|
184
|
+
resolveParents(): InterfaceResolution;
|
|
185
|
+
accept(visitor: GirVisitor): IntrospectedInterface;
|
|
186
|
+
static fromXML(element: GirInterfaceElement, namespace: IntrospectedNamespace, options: LoadOptions): IntrospectedInterface;
|
|
187
|
+
asString<T extends FormatGenerator<unknown>>(generator: T): ReturnType<T["generateInterface"]>;
|
|
188
|
+
}
|
|
189
|
+
export {};
|