@ts-for-gir/lib 4.0.0-beta.37 → 4.0.0-beta.38
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/package.json +4 -4
- package/src/types/answer-version.ts +2 -2
- package/src/types/any-introspected-type.ts +3 -1
- package/src/types/class-function-types.ts +41 -33
- package/src/types/class-parent.ts +11 -11
- package/src/types/class.ts +26 -28
- package/src/types/config-flags.ts +2 -2
- package/src/types/construct-name.ts +12 -12
- package/src/types/dependency-map.ts +2 -2
- package/src/types/dependency.ts +45 -45
- package/src/types/file-info.ts +12 -12
- package/src/types/format.ts +1 -1
- package/src/types/generator-constructor.ts +4 -4
- package/src/types/generics-config.ts +1 -1
- package/src/types/gir-any-element.ts +33 -33
- package/src/types/gir-module-interface.ts +5 -5
- package/src/types/gir-module-resolved.ts +1 -1
- package/src/types/gir-type-name.ts +17 -17
- package/src/types/index.ts +88 -90
- package/src/types/inheritance-table.ts +1 -1
- package/src/types/introspected.ts +8 -8
- package/src/types/local-name-check.ts +2 -2
- package/src/types/local-name-type.ts +1 -1
- package/src/types/local-name.ts +5 -5
- package/src/types/local-names.ts +2 -2
- package/src/types/metadata.ts +4 -4
- package/src/types/ns-loader.ts +2 -3
- package/src/types/options-base.ts +6 -6
- package/src/types/options-generation.ts +47 -47
- package/src/types/options-load.ts +3 -3
- package/src/types/options-transform.ts +2 -2
- package/src/types/output-format.ts +1 -1
- package/src/types/package-data-parsed.ts +26 -26
- package/src/types/package-data.ts +21 -21
- package/src/types/package-section-parsed.ts +6 -6
- package/src/types/parsed-gir.ts +2 -2
- package/src/types/parsed-package-data.ts +4 -4
- package/src/types/property-case.ts +1 -1
- package/src/types/resolve-type.ts +2 -2
- package/src/types/template-data.ts +5 -5
- package/src/types/template-options.ts +1 -1
- package/src/types/transformation-case.ts +8 -8
- package/src/types/transformations.ts +2 -2
- package/src/types/ts-doc-tag.ts +12 -12
- package/src/types/ts-doc.ts +9 -9
- package/src/types/type-gir-alias.ts +1 -1
- package/src/types/type-gir-class.ts +1 -1
- package/src/types/type-gir-element.ts +21 -21
- package/src/types/type-gir-enumeration-member.ts +1 -1
- package/src/types/type-gir-enumeration.ts +1 -1
- package/src/types/type-gir-function.ts +7 -7
- package/src/types/type-gir-interface.ts +1 -1
- package/src/types/type-gir-method.ts +1 -1
- package/src/types/type-gir-parameter.ts +1 -1
- package/src/types/type-gir-property.ts +1 -1
- package/src/types/type-gir-variable.ts +1 -1
- package/src/types/type-ts-element.ts +10 -10
- package/src/types/type-ts-enumeration-member.ts +1 -1
- package/src/types/type-ts-function.ts +1 -1
- package/src/types/type-ts-property.ts +1 -1
- package/src/types/user-config-load-result.ts +4 -4
- package/src/types/user-config.ts +53 -53
package/src/types/index.ts
CHANGED
|
@@ -1,94 +1,92 @@
|
|
|
1
|
-
export * from './answer-version.ts'
|
|
2
|
-
export * from './any-introspected-type.ts'
|
|
3
|
-
export * from './class-member.ts'
|
|
4
|
-
export * from './class-parent.ts'
|
|
5
|
-
export * from './class.ts'
|
|
6
|
-
export * from './config-flags.ts'
|
|
7
|
-
export * from './construct-name.ts'
|
|
8
|
-
export * from './dependency-map.ts'
|
|
9
|
-
export * from './dependency.ts'
|
|
10
|
-
export * from './file-info.ts'
|
|
11
|
-
export * from './format.ts'
|
|
12
|
-
export * from './generator-constructor.ts'
|
|
13
|
-
export * from './generics-config.ts'
|
|
14
|
-
export * from './gir-module-interface.ts'
|
|
15
|
-
export * from './gir-module-resolved.ts'
|
|
16
1
|
// Re-export GIR types from parser (consolidated types)
|
|
17
2
|
export type {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
GirMemberElement,
|
|
33
|
-
GirMethodElement,
|
|
34
|
-
GirNamespace,
|
|
35
|
-
GirPropertyElement,
|
|
36
|
-
GirRecordElement,
|
|
37
|
-
GirRepository,
|
|
38
|
-
GirSignalElement,
|
|
39
|
-
GirUnionElement,
|
|
40
|
-
GirVirtualMethodElement,
|
|
41
|
-
PartOfClass,
|
|
42
|
-
PartOfModule,
|
|
43
|
-
// Re-export base XML types that are still needed
|
|
44
|
-
|
|
45
|
-
GirInstanceParameter,
|
|
46
|
-
} from '@gi.ts/parser'
|
|
3
|
+
GirAliasElement,
|
|
4
|
+
GirAnnotation,
|
|
5
|
+
GirBitfieldElement,
|
|
6
|
+
GirCallableParamElement,
|
|
7
|
+
GirCallableParams,
|
|
8
|
+
GirCallableReturn,
|
|
9
|
+
GirCallbackElement,
|
|
10
|
+
GirClassElement,
|
|
11
|
+
GirConstantElement,
|
|
12
|
+
GirConstructorElement,
|
|
13
|
+
GirEnumElement,
|
|
14
|
+
GirFieldElement,
|
|
15
|
+
GirFunctionElement,
|
|
16
|
+
// Re-export base XML types that are still needed
|
|
47
17
|
|
|
18
|
+
GirInstanceParameter,
|
|
19
|
+
GirInterfaceElement,
|
|
20
|
+
GirMemberElement,
|
|
21
|
+
GirMethodElement,
|
|
22
|
+
GirNamespace,
|
|
23
|
+
GirPropertyElement,
|
|
24
|
+
GirRecordElement,
|
|
25
|
+
GirRepository,
|
|
26
|
+
GirSignalElement,
|
|
27
|
+
GirUnionElement,
|
|
28
|
+
GirVirtualMethodElement,
|
|
29
|
+
PartOfClass,
|
|
30
|
+
PartOfModule,
|
|
31
|
+
} from "@gi.ts/parser";
|
|
48
32
|
// Export the actual GirModule class
|
|
49
|
-
export { GirModule } from
|
|
50
|
-
|
|
51
|
-
export * from
|
|
52
|
-
export * from
|
|
53
|
-
export * from
|
|
54
|
-
export * from
|
|
55
|
-
export * from
|
|
56
|
-
export * from
|
|
57
|
-
export * from
|
|
58
|
-
export * from
|
|
59
|
-
export * from
|
|
60
|
-
export * from
|
|
61
|
-
export * from
|
|
62
|
-
export * from
|
|
63
|
-
export * from
|
|
64
|
-
export * from
|
|
65
|
-
export * from
|
|
66
|
-
export * from
|
|
67
|
-
export * from
|
|
68
|
-
export * from
|
|
69
|
-
export * from
|
|
70
|
-
export * from
|
|
71
|
-
export * from
|
|
72
|
-
export * from
|
|
73
|
-
export * from
|
|
74
|
-
export * from
|
|
75
|
-
export * from
|
|
76
|
-
export * from
|
|
77
|
-
export * from
|
|
78
|
-
export * from
|
|
79
|
-
export * from
|
|
80
|
-
export * from
|
|
81
|
-
export * from
|
|
82
|
-
export * from
|
|
83
|
-
export * from
|
|
84
|
-
export * from
|
|
85
|
-
export * from
|
|
86
|
-
export * from
|
|
87
|
-
export * from
|
|
88
|
-
export * from
|
|
89
|
-
export * from
|
|
90
|
-
export * from
|
|
91
|
-
export * from
|
|
92
|
-
export * from
|
|
93
|
-
export * from
|
|
94
|
-
export * from
|
|
33
|
+
export { GirModule } from "../gir-module.ts";
|
|
34
|
+
export * from "./answer-version.ts";
|
|
35
|
+
export * from "./any-introspected-type.ts";
|
|
36
|
+
export * from "./class.ts";
|
|
37
|
+
export * from "./class-member.ts";
|
|
38
|
+
export * from "./class-parent.ts";
|
|
39
|
+
export * from "./config-flags.ts";
|
|
40
|
+
export * from "./construct-name.ts";
|
|
41
|
+
export * from "./dependency.ts";
|
|
42
|
+
export * from "./dependency-map.ts";
|
|
43
|
+
export * from "./file-info.ts";
|
|
44
|
+
export * from "./format.ts";
|
|
45
|
+
export * from "./generator-constructor.ts";
|
|
46
|
+
export * from "./generics-config.ts";
|
|
47
|
+
export * from "./gir-any-element.ts";
|
|
48
|
+
export * from "./gir-module-interface.ts";
|
|
49
|
+
export * from "./gir-module-resolved.ts";
|
|
50
|
+
export * from "./inheritance-table.ts";
|
|
51
|
+
export * from "./introspected.ts";
|
|
52
|
+
export * from "./local-name.ts";
|
|
53
|
+
export * from "./local-name-check.ts";
|
|
54
|
+
export * from "./local-name-type.ts";
|
|
55
|
+
export * from "./local-names.ts";
|
|
56
|
+
export * from "./metadata.ts";
|
|
57
|
+
export * from "./ns-loader.ts";
|
|
58
|
+
export * from "./options-base.ts";
|
|
59
|
+
export * from "./options-generation.ts";
|
|
60
|
+
export * from "./options-load.ts";
|
|
61
|
+
export * from "./options-transform.ts";
|
|
62
|
+
export * from "./output-format.ts";
|
|
63
|
+
export * from "./package-data.ts";
|
|
64
|
+
export * from "./package-data-parsed.ts";
|
|
65
|
+
export * from "./package-section-parsed.ts";
|
|
66
|
+
export * from "./parsed-gir.ts";
|
|
67
|
+
export * from "./parsed-package-data.ts";
|
|
68
|
+
export * from "./property-case.ts";
|
|
69
|
+
export * from "./resolve-type.ts";
|
|
70
|
+
export * from "./template-data.ts";
|
|
71
|
+
export * from "./template-options.ts";
|
|
72
|
+
export * from "./transformation-case.ts";
|
|
73
|
+
export * from "./transformations.ts";
|
|
74
|
+
export * from "./ts-doc.ts";
|
|
75
|
+
export * from "./ts-doc-tag.ts";
|
|
76
|
+
export * from "./type-gir-alias.ts";
|
|
77
|
+
export * from "./type-gir-class.ts";
|
|
78
|
+
export * from "./type-gir-element.ts";
|
|
79
|
+
export * from "./type-gir-enumeration.ts";
|
|
80
|
+
export * from "./type-gir-enumeration-member.ts";
|
|
81
|
+
export * from "./type-gir-function.ts";
|
|
82
|
+
export * from "./type-gir-interface.ts";
|
|
83
|
+
export * from "./type-gir-method.ts";
|
|
84
|
+
export * from "./type-gir-parameter.ts";
|
|
85
|
+
export * from "./type-gir-property.ts";
|
|
86
|
+
export * from "./type-gir-variable.ts";
|
|
87
|
+
export * from "./type-ts-element.ts";
|
|
88
|
+
export * from "./type-ts-enumeration-member.ts";
|
|
89
|
+
export * from "./type-ts-function.ts";
|
|
90
|
+
export * from "./type-ts-property.ts";
|
|
91
|
+
export * from "./user-config.ts";
|
|
92
|
+
export * from "./user-config-load-result.ts";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export interface IntrospectedMetadata {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
deprecated?: boolean;
|
|
3
|
+
deprecatedVersion?: string;
|
|
4
|
+
deprecatedDoc?: string;
|
|
5
|
+
introducedVersion?: string;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
export interface IntrospectedBaseOptions {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
isPrivate?: boolean;
|
|
10
|
+
isIntrospectable?: boolean;
|
|
11
|
+
doc?: string | null;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export type IntrospectedOptions<T> = IntrospectedBaseOptions & T;
|
|
15
15
|
|
|
16
16
|
// Aliases for backward compatibility
|
|
17
17
|
export type BaseOptions = IntrospectedBaseOptions;
|
|
18
|
-
export type Options<T> = IntrospectedOptions<T>;
|
|
18
|
+
export type Options<T> = IntrospectedOptions<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type LocalNameType =
|
|
1
|
+
export type LocalNameType = "method" | "property" | "field";
|
package/src/types/local-name.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { GirFieldElement, GirMethodElement, GirPropertyElement, LocalNameType } from "./index.ts";
|
|
2
2
|
|
|
3
3
|
export interface LocalName {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
type: LocalNameType;
|
|
5
|
+
method?: GirMethodElement;
|
|
6
|
+
property?: GirPropertyElement;
|
|
7
|
+
field?: GirFieldElement;
|
|
8
8
|
}
|
package/src/types/local-names.ts
CHANGED
package/src/types/metadata.ts
CHANGED
package/src/types/ns-loader.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ParsedGir } from "./parsed-gir.ts";
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
export interface NSLoader {
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
load(namespace: string, version: string): ParsedGir | null;
|
|
5
|
+
loadAll(namespace: string): ParsedGir[];
|
|
7
6
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export interface OptionsBase {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
/** Switch on/off the verbose mode */
|
|
3
|
+
verbose: boolean;
|
|
4
|
+
/** Enable generation problem reporter */
|
|
5
|
+
reporter: boolean;
|
|
6
|
+
/** Output file path for the reporter */
|
|
7
|
+
reporterOutput: string;
|
|
8
8
|
}
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import type { OptionsBase } from
|
|
1
|
+
import type { OptionsBase } from "./index.ts";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Type for currently used config e.g. in GirModule
|
|
5
5
|
*/
|
|
6
6
|
export interface OptionsGeneration extends OptionsBase {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
7
|
+
/** root / working directory of your project */
|
|
8
|
+
root: string;
|
|
9
|
+
/** directory to output to */
|
|
10
|
+
outdir: string | null;
|
|
11
|
+
/** GIR directories */
|
|
12
|
+
girDirectories: string[];
|
|
13
|
+
/** Do not export all symbols for each module as a namespace */
|
|
14
|
+
noNamespace: boolean;
|
|
15
|
+
/** Do not generate documentation comments */
|
|
16
|
+
noComments: boolean;
|
|
17
|
+
/** Generate promisified functions for async/finish calls */
|
|
18
|
+
promisify: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Scope of the generated NPM packages
|
|
21
|
+
* @see https://docs.npmjs.com/cli/v7/using-npm/scope
|
|
22
|
+
*/
|
|
23
|
+
npmScope: string;
|
|
24
|
+
/** Uses the workspace protocol for the generated packages which can be used with package managers like Yarn and PNPM */
|
|
25
|
+
workspace: boolean;
|
|
26
|
+
/** Disable GLib.Variant class with string parsing */
|
|
27
|
+
noAdvancedVariants: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Only use the version prefix for the ambient module exports.
|
|
30
|
+
* This is useful if, for whatever reason, you want to use different library versions of the same library in your project.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* declare module 'gi://Gtk?version=4.0' {...}
|
|
35
|
+
* declare module 'gi://Gtk?version=3.0' {...}
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
onlyVersionPrefix: boolean;
|
|
39
|
+
/** Disable pretty printing the output */
|
|
40
|
+
noPrettyPrint: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Generate the typescript types with package.json support
|
|
43
|
+
*/
|
|
44
|
+
package: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Enable generation problem reporter and create a detailed report file
|
|
47
|
+
*/
|
|
48
|
+
reporter: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Output file path for the reporter
|
|
51
|
+
*/
|
|
52
|
+
reporterOutput: string;
|
|
53
53
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { OptionsBase, PropertyCase } from
|
|
1
|
+
import type { OptionsBase, PropertyCase } from "./index.ts";
|
|
2
2
|
|
|
3
3
|
export interface OptionsLoad extends OptionsBase {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
loadDocs: boolean;
|
|
5
|
+
propertyCase: PropertyCase;
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type OutputFormat =
|
|
1
|
+
export type OutputFormat = "file" | "folder";
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
export interface PackageDataParsed {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
2
|
+
/** Description of this package */
|
|
3
|
+
_: string;
|
|
4
|
+
$: {
|
|
5
|
+
/** Vala package name */
|
|
6
|
+
name: string;
|
|
7
|
+
/** Vala build flags */
|
|
8
|
+
flags?: string;
|
|
9
|
+
/** URL to the homepage of this package */
|
|
10
|
+
home?: string;
|
|
11
|
+
/** URL to a gallery of widgets of this package */
|
|
12
|
+
gallery?: string;
|
|
13
|
+
/** URL to the source code of this package */
|
|
14
|
+
"c-docs"?: string;
|
|
15
|
+
/** True if this package should be ignored*/
|
|
16
|
+
ignore?: "true" | "false";
|
|
17
|
+
/** True if this package is deprecated */
|
|
18
|
+
deprecated?: "true" | "false";
|
|
19
|
+
/** Gir package name with version string */
|
|
20
|
+
gir?: string;
|
|
21
|
+
/** URL to the VAPI image sources of this package */
|
|
22
|
+
"vapi-image-source"?: string;
|
|
23
|
+
/** Name of the Maintainer of this package */
|
|
24
|
+
maintainers?: string;
|
|
25
|
+
/** Name of the Maintainer of this package */
|
|
26
|
+
maintainer?: string;
|
|
27
|
+
};
|
|
28
28
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import type { PackageSectionParsed } from
|
|
1
|
+
import type { PackageSectionParsed } from "./index.ts";
|
|
2
2
|
|
|
3
3
|
export interface PackageData {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
4
|
+
/** Namespace of this package, e.g. Gtk */
|
|
5
|
+
namespace: string;
|
|
6
|
+
/** Version of this package, e.g. 4.0 */
|
|
7
|
+
version: string;
|
|
8
|
+
/** Description of this package */
|
|
9
|
+
description: string;
|
|
10
|
+
/** Gir package name with version string */
|
|
11
|
+
gir?: string;
|
|
12
|
+
/** URL to the homepage of this package */
|
|
13
|
+
home?: string;
|
|
14
|
+
/** URL to a gallery of widgets of this package */
|
|
15
|
+
gallery?: string;
|
|
16
|
+
/** URL to the source code of this package */
|
|
17
|
+
cDocs?: string;
|
|
18
|
+
/** True if this package is deprecated */
|
|
19
|
+
deprecated?: boolean;
|
|
20
|
+
/** Name of the Maintainer of this package */
|
|
21
|
+
maintainers?: string;
|
|
22
|
+
/** The section of this package */
|
|
23
|
+
section?: PackageSectionParsed;
|
|
24
24
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { PackageDataParsed } from
|
|
1
|
+
import type { PackageDataParsed } from "./index.ts";
|
|
2
2
|
|
|
3
3
|
export interface PackageSectionParsed {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
$: {
|
|
5
|
+
name: string;
|
|
6
|
+
};
|
|
7
|
+
package?: PackageDataParsed[];
|
|
8
|
+
section?: PackageSectionParsed[];
|
|
9
9
|
}
|
package/src/types/parsed-gir.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { PackageSectionParsed } from
|
|
1
|
+
import type { PackageSectionParsed } from "./index.ts";
|
|
2
2
|
|
|
3
3
|
export interface ParsedPackageData {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
packages: {
|
|
5
|
+
section: PackageSectionParsed[];
|
|
6
|
+
};
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type PropertyCase =
|
|
1
|
+
export type PropertyCase = "both" | "camel" | "underscore";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Data } from
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
1
|
+
import type { Data } from "ejs";
|
|
2
|
+
import type { GirModule } from "../gir-module.ts";
|
|
3
|
+
import type { OptionsGeneration } from "./options-generation.ts";
|
|
4
4
|
|
|
5
5
|
export interface TemplateData extends Data, Partial<OptionsGeneration> {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
girModule?: GirModule;
|
|
7
|
+
importName?: string;
|
|
8
8
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export type TransformationCase =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
| "original"
|
|
3
|
+
| "lowerCamelCase"
|
|
4
|
+
| "upperCamelCase"
|
|
5
|
+
| "upperCase"
|
|
6
|
+
| "lowerCase"
|
|
7
|
+
| "underscores"
|
|
8
|
+
| "snakeCase"
|
|
9
|
+
| "slugCase";
|