@girs/libxml2-2.0 2.0.0-4.0.0-beta.5 → 2.0.0-4.0.0-beta.7

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 CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/libxml2-2.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for libxml2-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.5.
8
+ GJS TypeScript type definitions for libxml2-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.7.
9
9
 
10
10
 
11
11
  ## Install
package/index.d.ts ADDED
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Type Definitions for Gjs (https://gjs.guide/)
3
+ *
4
+ * These type definitions are automatically generated, do not edit them by hand.
5
+ * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
6
+ *
7
+ * This template is used to generate the index.d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
8
+ */
9
+
10
+ import './libxml2-2.0-ambient.d.ts';
11
+
12
+ import './libxml2-2.0-import.d.ts';
13
+
14
+ import libxml2 from './libxml2-2.0.js';
15
+ export default libxml2;
package/index.js ADDED
@@ -0,0 +1,5 @@
1
+
2
+ // @ts-expect-error
3
+ import libxml2 from './libxml2-2.0.js';
4
+ export default libxml2;
5
+
@@ -1,12 +1,9 @@
1
-
2
1
  declare module 'gi://libxml2?version=2.0' {
3
- import libxml2 from '@girs/libxml2-2.0';
4
- export default libxml2;
2
+ import Libxml220 from '@girs/libxml2-2.0';
3
+ export default Libxml220;
5
4
  }
6
5
 
7
6
  declare module 'gi://libxml2' {
8
7
  import Libxml220 from 'gi://libxml2?version=2.0';
9
8
  export default Libxml220;
10
9
  }
11
-
12
-
@@ -1,4 +1,3 @@
1
-
2
1
  import Libxml220 from '@girs/libxml2-2.0';
3
2
 
4
3
  declare global {
@@ -8,5 +7,3 @@ declare global {
8
7
  }
9
8
 
10
9
  export default GjsGiImports;
11
-
12
-
package/libxml2-2.0.d.ts CHANGED
@@ -1,19 +1,20 @@
1
- /*
1
+ /**
2
2
  * Type Definitions for Gjs (https://gjs.guide/)
3
3
  *
4
4
  * These type definitions are automatically generated, do not edit them by hand.
5
5
  * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
6
+ *
7
+ * The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
6
8
  */
7
9
 
8
- import './libxml2-2.0-ambient.d.ts';
9
-
10
- /**
11
- * libxml2-2.0
12
- */
13
-
10
+ // Module dependencies
14
11
  import type GObject from '@girs/gobject-2.0';
15
12
 
16
13
  export namespace libxml2 {
14
+ /**
15
+ * libxml2-2.0
16
+ */
17
+
17
18
  function dummy(): void;
18
19
  class Node {
19
20
  static $gtype: GObject.GType<Node>;
@@ -92,4 +93,5 @@ export namespace libxml2 {
92
93
  }
93
94
 
94
95
  export default libxml2;
96
+
95
97
  // END
package/libxml2-2.0.js CHANGED
@@ -1,6 +1,5 @@
1
1
 
2
- // @ts-expect-error
3
- import libxml2 from 'gi://libxml2?version=2.0';
4
- export { libxml2 };
5
- export default libxml2;
2
+ // @ts-expect-error
3
+ import libxml2 from 'gi://libxml2?version=2.0';
4
+ export default libxml2;
6
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/libxml2-2.0",
3
- "version": "2.0.0-4.0.0-beta.5",
3
+ "version": "2.0.0-4.0.0-beta.7",
4
4
  "description": "GJS TypeScript type definitions for libxml2-2.0, generated from library version 2.0.0",
5
5
  "type": "module",
6
6
  "module": "libxml2-2.0.js",
@@ -16,18 +16,23 @@
16
16
  "import": "./libxml2-2.0-import.js",
17
17
  "default": "./libxml2-2.0-import.js"
18
18
  },
19
- ".": {
19
+ "./libxml2-2.0": {
20
20
  "types": "./libxml2-2.0.d.ts",
21
21
  "import": "./libxml2-2.0.js",
22
22
  "default": "./libxml2-2.0.js"
23
+ },
24
+ ".": {
25
+ "types": "./index.d.ts",
26
+ "import": "./index.js",
27
+ "default": "./index.js"
23
28
  }
24
29
  },
25
30
  "scripts": {
26
- "test": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit libxml2-2.0.d.ts"
31
+ "test": "tsc --project tsconfig.json"
27
32
  },
28
33
  "dependencies": {
29
- "@girs/gjs": "^4.0.0-beta.5",
30
- "@girs/gobject-2.0": "^2.80.0-4.0.0-beta.5"
34
+ "@girs/gjs": "^4.0.0-beta.7",
35
+ "@girs/gobject-2.0": "^2.80.2-4.0.0-beta.7"
31
36
  },
32
37
  "devDependencies": {
33
38
  "typescript": "*"
package/tsconfig.json CHANGED
@@ -2,11 +2,11 @@
2
2
  "compilerOptions": {
3
3
  // General settings for code interpretation
4
4
  "target": "ESNext",
5
- "module": "ESNext",
5
+ "module": "NodeNext",
6
6
  "lib": ["ESNext"],
7
7
  "types": [],
8
8
  "experimentalDecorators": true,
9
- "moduleResolution": "node",
9
+ "moduleResolution": "NodeNext",
10
10
  "noEmit": true,
11
11
  "noEmitOnError": false,
12
12
  "baseUrl": "./",