@ts-for-gir/generator-typescript 4.0.0-beta.14 → 4.0.0-beta.16
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ts-for-gir/generator-typescript",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.16",
|
|
4
4
|
"description": "TypeScript type definition generator for ts-for-gir",
|
|
5
5
|
"module": "lib/index.js",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -42,20 +42,20 @@
|
|
|
42
42
|
],
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/ejs": "^3.1.5",
|
|
45
|
-
"@types/node": "^
|
|
45
|
+
"@types/node": "^22.5.5",
|
|
46
46
|
"@types/xml2js": "^0.4.14",
|
|
47
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
48
|
-
"@typescript-eslint/parser": "^
|
|
49
|
-
"eslint": "^8.57.
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "^8.6.0",
|
|
48
|
+
"@typescript-eslint/parser": "^8.6.0",
|
|
49
|
+
"eslint": "^8.57.1",
|
|
50
50
|
"eslint-config-prettier": "^9.1.0",
|
|
51
51
|
"eslint-plugin-prettier": "^5.2.1",
|
|
52
52
|
"prettier": "^3.3.3",
|
|
53
53
|
"rimraf": "^6.0.1",
|
|
54
|
-
"typescript": "^5.
|
|
54
|
+
"typescript": "^5.6.2"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@ts-for-gir/generator-base": "^4.0.0-beta.
|
|
58
|
-
"@ts-for-gir/lib": "^4.0.0-beta.
|
|
57
|
+
"@ts-for-gir/generator-base": "^4.0.0-beta.16",
|
|
58
|
+
"@ts-for-gir/lib": "^4.0.0-beta.16",
|
|
59
59
|
"ejs": "^3.1.10",
|
|
60
60
|
"xml2js": "^0.6.2"
|
|
61
61
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// WORKAROUND: As long as ParamObject is not generated
|
|
2
|
+
export class ParamObject extends GObject.ParamSpec {}
|
|
3
|
+
|
|
4
|
+
// WORKAROUND: As long as ParamObject is not generated
|
|
5
|
+
export class ParamItem extends GObject.ParamSpec {}
|
|
6
|
+
|
|
7
|
+
// WORKAROUND: As long as ParamObject is not generated
|
|
8
|
+
export class ParamArray extends GObject.ParamSpec {}
|
|
@@ -48,7 +48,7 @@ export const programArgs: string[]
|
|
|
48
48
|
* @param o Any Object
|
|
49
49
|
* @returns A hexadecimal string (e.g. `0xb4f170f0`)
|
|
50
50
|
*/
|
|
51
|
-
export function addressOf(o:
|
|
51
|
+
export function addressOf(o: object): string
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
54
|
* Return the memory address of any GObject as a string.
|
|
@@ -141,7 +141,7 @@ export function dumpHeap(path?: string): void
|
|
|
141
141
|
* }
|
|
142
142
|
* }
|
|
143
143
|
* ```
|
|
144
|
-
*
|
|
144
|
+
*
|
|
145
145
|
*/
|
|
146
146
|
export function dumpMemoryInfo(path?: string): void
|
|
147
147
|
|
|
@@ -149,18 +149,18 @@ export function dumpMemoryInfo(path?: string): void
|
|
|
149
149
|
* This works the same as C's exit() function; exits the program, passing a
|
|
150
150
|
* certain error code to the shell. The shell expects the error code to be zero if
|
|
151
151
|
* there was no error, or non-zero (any value you please) to indicate an error.
|
|
152
|
-
*
|
|
152
|
+
*
|
|
153
153
|
* This value is used by other tools such as `make`; if `make` calls a program that
|
|
154
154
|
* returns a non-zero error code, then `make` aborts the build.
|
|
155
155
|
* @param code An exit code
|
|
156
156
|
*/
|
|
157
|
-
export function exit(code: number):
|
|
157
|
+
export function exit(code: number): never
|
|
158
158
|
|
|
159
159
|
/**
|
|
160
160
|
* The System module provides common low-level facilities such as access to
|
|
161
161
|
* process arguments and exit(), as well as a number of useful functions and
|
|
162
162
|
* properties for debugging.
|
|
163
|
-
*
|
|
163
|
+
*
|
|
164
164
|
* Note that the majority of the functions and properties in this module should not
|
|
165
165
|
* be used in normal operation of a GJS application.
|
|
166
166
|
*/
|
|
@@ -184,4 +184,4 @@ export default System
|
|
|
184
184
|
|
|
185
185
|
<%_ if(!package){ -%>
|
|
186
186
|
}
|
|
187
|
-
<% } -%>
|
|
187
|
+
<% } -%>
|
|
@@ -81,6 +81,7 @@ export let TYPE_BOXED: GType<unknown>;
|
|
|
81
81
|
export let TYPE_PARAM: GType<unknown>;
|
|
82
82
|
export let TYPE_INTERFACE: GType<unknown>;
|
|
83
83
|
export let TYPE_OBJECT: GType<object>;
|
|
84
|
+
export let TYPE_JSOBJECT: GType<Object>;
|
|
84
85
|
export let TYPE_VARIANT: GType<GLib.Variant>;
|
|
85
86
|
export let TYPE_INT: GType<number>;
|
|
86
87
|
export let TYPE_UINT: GType<number>;
|