@ts-for-gir/generator-typescript 4.0.0-beta.21 → 4.0.0-beta.23
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 +19 -2
- package/package.json +10 -10
- package/templates/gjs/cairo.d.ts +732 -378
- package/templates/gjs/gjs.d.ts +150 -35
- package/templates/module.d.ts +8 -0
- package/templates/package.json +1 -6
package/README.md
CHANGED
|
@@ -16,5 +16,22 @@
|
|
|
16
16
|
<img src="https://raw.githubusercontent.com/gjsify/ts-for-gir/main/.github/feeling.gif" />
|
|
17
17
|
</p>
|
|
18
18
|
|
|
19
|
-
# Generator
|
|
20
|
-
|
|
19
|
+
# TypeScript Generator
|
|
20
|
+
|
|
21
|
+
TypeScript-specific generator for `ts-for-gir`. This package implements the actual generation of TypeScript declaration files (.d.ts) from the processed GIR data. It transforms the intermediate representation of GObject types into TypeScript type definitions.
|
|
22
|
+
|
|
23
|
+
## Features
|
|
24
|
+
|
|
25
|
+
- Generation of TypeScript declaration files (.d.ts) from GIR data
|
|
26
|
+
- Support for generating NPM packages with proper package.json configuration
|
|
27
|
+
- Template-based code generation using EJS templates
|
|
28
|
+
- Complete handling of complex type transformations:
|
|
29
|
+
- Classes, interfaces, and records
|
|
30
|
+
- Functions, methods, and constructors
|
|
31
|
+
- Properties, fields, and constants
|
|
32
|
+
- Enums and callbacks
|
|
33
|
+
- Signals and their event handlers
|
|
34
|
+
- Generation of proper JSDoc comments from GIR documentation
|
|
35
|
+
- Support for GJS-specific module formats and ambient type declarations
|
|
36
|
+
|
|
37
|
+
This package is responsible for the final output of the `ts-for-gir` toolchain, producing TypeScript definition files that can be used in GJS projects.
|
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.23",
|
|
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": "^22.13.
|
|
45
|
+
"@types/node": "^22.13.11",
|
|
46
46
|
"@types/xml2js": "^0.4.14",
|
|
47
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
48
|
-
"@typescript-eslint/parser": "^8.
|
|
49
|
-
"eslint": "^9.
|
|
50
|
-
"eslint-config-prettier": "^10.
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "^8.27.0",
|
|
48
|
+
"@typescript-eslint/parser": "^8.27.0",
|
|
49
|
+
"eslint": "^9.22.0",
|
|
50
|
+
"eslint-config-prettier": "^10.1.1",
|
|
51
51
|
"eslint-plugin-prettier": "^5.2.3",
|
|
52
|
-
"prettier": "^3.5.
|
|
52
|
+
"prettier": "^3.5.3",
|
|
53
53
|
"rimraf": "^6.0.1",
|
|
54
|
-
"typescript": "^5.
|
|
54
|
+
"typescript": "^5.8.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.23",
|
|
58
|
+
"@ts-for-gir/lib": "^4.0.0-beta.23",
|
|
59
59
|
"ejs": "^3.1.10",
|
|
60
60
|
"xml2js": "^0.6.2"
|
|
61
61
|
}
|