@ts-for-gir/lib 4.0.0-rc.8 → 4.0.0-rc.9
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 +5 -5
- package/src/gir/function.ts +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ts-for-gir/lib",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.9",
|
|
4
4
|
"description": "Typescript .d.ts generator from GIR for gjs",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"module": "src/index.ts",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"type definitions"
|
|
42
42
|
],
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@ts-for-gir/tsconfig": "^4.0.0-rc.
|
|
44
|
+
"@ts-for-gir/tsconfig": "^4.0.0-rc.9",
|
|
45
45
|
"@types/ejs": "^3.1.5",
|
|
46
46
|
"@types/lodash": "^4.17.24",
|
|
47
47
|
"@types/node": "^25.6.0",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"typescript": "^6.0.3"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@gi.ts/parser": "^4.0.0-rc.
|
|
53
|
-
"@ts-for-gir/reporter": "^4.0.0-rc.
|
|
54
|
-
"@ts-for-gir/templates": "^4.0.0-rc.
|
|
52
|
+
"@gi.ts/parser": "^4.0.0-rc.9",
|
|
53
|
+
"@ts-for-gir/reporter": "^4.0.0-rc.9",
|
|
54
|
+
"@ts-for-gir/templates": "^4.0.0-rc.9",
|
|
55
55
|
"colorette": "^2.0.20",
|
|
56
56
|
"ejs": "^5.0.2",
|
|
57
57
|
"glob": "^13.0.6",
|
package/src/gir/function.ts
CHANGED
|
@@ -235,7 +235,10 @@ export class IntrospectedFunction extends IntrospectedNamespaceMember {
|
|
|
235
235
|
): IntrospectedFunctionParameter[] {
|
|
236
236
|
return parameters
|
|
237
237
|
.filter((_, i) => !length_params.includes(i) && !user_data_params.includes(i))
|
|
238
|
-
.filter((v) =>
|
|
238
|
+
.filter((v) => {
|
|
239
|
+
const unwrapped = v.type.unwrap();
|
|
240
|
+
return !(unwrapped instanceof TypeIdentifier && unwrapped.is("GLib", "DestroyNotify"));
|
|
241
|
+
});
|
|
239
242
|
}
|
|
240
243
|
|
|
241
244
|
private static processOptionalParameters(
|