@girs/libxml2-2.0 2.0.0-3.3.0 → 2.0.0-4.0.0-beta.2

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,9 +5,8 @@
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) v3.3.0.
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.2.
9
9
 
10
- Powerful and feature complete XML handling library.
11
10
 
12
11
  ## Install
13
12
 
@@ -1,11 +1,11 @@
1
1
 
2
2
  declare module 'gi://libxml2?version=2.0' {
3
- import Libxml220 from '@girs/libxml2-2.0';
4
- export default Libxml220;
3
+ import libxml2 from '@girs/libxml2-2.0';
4
+ export default libxml2;
5
5
  }
6
6
 
7
7
  declare module 'gi://libxml2' {
8
- import Libxml220 from '@girs/libxml2-2.0';
8
+ import Libxml220 from 'gi://libxml2?version=2.0';
9
9
  export default Libxml220;
10
10
  }
11
11
 
package/libxml2-2.0.d.ts CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  /*
3
2
  * Type Definitions for Gjs (https://gjs.guide/)
4
3
  *
@@ -7,7 +6,7 @@
7
6
  */
8
7
 
9
8
  import './libxml2-2.0-ambient.d.ts';
10
- import './libxml2-2.0-import.d.ts';
9
+
11
10
  /**
12
11
  * libxml2-2.0
13
12
  */
@@ -15,99 +14,82 @@ import './libxml2-2.0-import.d.ts';
15
14
  import type GObject from '@girs/gobject-2.0';
16
15
 
17
16
  export namespace libxml2 {
17
+ function dummy(): void;
18
+ class Node {
19
+ static $gtype: GObject.GType<Node>;
18
20
 
19
- function dummy(): void
20
- interface Node {
21
- }
22
-
23
- class Node {
21
+ // Constructors of libxml2.Node
24
22
 
25
- // Own properties of libxml2-2.0.libxml2.Node
23
+ _init(...args: any[]): void;
24
+ }
26
25
 
27
- static name: string
28
- }
26
+ class NodePtr {
27
+ static $gtype: GObject.GType<NodePtr>;
29
28
 
30
- interface NodePtr {
31
- }
29
+ // Constructors of libxml2.NodePtr
32
30
 
33
- class NodePtr {
31
+ _init(...args: any[]): void;
32
+ }
34
33
 
35
- // Own properties of libxml2-2.0.libxml2.NodePtr
34
+ class Doc {
35
+ static $gtype: GObject.GType<Doc>;
36
36
 
37
- static name: string
38
- }
37
+ // Constructors of libxml2.Doc
39
38
 
40
- interface Doc {
41
- }
39
+ _init(...args: any[]): void;
40
+ }
42
41
 
43
- class Doc {
42
+ class DocPtr {
43
+ static $gtype: GObject.GType<DocPtr>;
44
44
 
45
- // Own properties of libxml2-2.0.libxml2.Doc
45
+ // Constructors of libxml2.DocPtr
46
46
 
47
- static name: string
48
- }
47
+ _init(...args: any[]): void;
48
+ }
49
49
 
50
- interface DocPtr {
51
- }
50
+ class NsPtr {
51
+ static $gtype: GObject.GType<NsPtr>;
52
52
 
53
- class DocPtr {
53
+ // Constructors of libxml2.NsPtr
54
54
 
55
- // Own properties of libxml2-2.0.libxml2.DocPtr
55
+ _init(...args: any[]): void;
56
+ }
56
57
 
57
- static name: string
58
- }
58
+ class Char {
59
+ static $gtype: GObject.GType<Char>;
59
60
 
60
- interface NsPtr {
61
- }
61
+ // Constructors of libxml2.Char
62
62
 
63
- class NsPtr {
63
+ _init(...args: any[]): void;
64
+ }
64
65
 
65
- // Own properties of libxml2-2.0.libxml2.NsPtr
66
+ class TextWriter {
67
+ static $gtype: GObject.GType<TextWriter>;
66
68
 
67
- static name: string
68
- }
69
+ // Constructors of libxml2.TextWriter
69
70
 
70
- interface Char {
71
- }
71
+ _init(...args: any[]): void;
72
+ }
72
73
 
73
- class Char {
74
+ class TextReader {
75
+ static $gtype: GObject.GType<TextReader>;
74
76
 
75
- // Own properties of libxml2-2.0.libxml2.Char
77
+ // Constructors of libxml2.TextReader
76
78
 
77
- static name: string
78
- }
79
+ _init(...args: any[]): void;
80
+ }
79
81
 
80
- interface TextWriter {
81
- }
82
-
83
- class TextWriter {
84
-
85
- // Own properties of libxml2-2.0.libxml2.TextWriter
86
-
87
- static name: string
88
- }
89
-
90
- interface TextReader {
91
- }
92
-
93
- class TextReader {
94
-
95
- // Own properties of libxml2-2.0.libxml2.TextReader
96
-
97
- static name: string
98
- }
99
-
100
- /**
101
- * Name of the imported GIR library
102
- * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
103
- */
104
- const __name__: string
105
- /**
106
- * Version of the imported GIR library
107
- * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
108
- */
109
- const __version__: string
82
+ /**
83
+ * Name of the imported GIR library
84
+ * `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
85
+ */
86
+ const __name__: string;
87
+ /**
88
+ * Version of the imported GIR library
89
+ * `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
90
+ */
91
+ const __version__: string;
110
92
  }
111
93
 
112
94
  export default libxml2;
113
- // END
95
+ // END
package/libxml2-2.0.js CHANGED
@@ -1,10 +1,6 @@
1
1
 
2
-
3
2
  // @ts-expect-error
4
3
  import libxml2 from 'gi://libxml2?version=2.0';
5
4
  export { libxml2 };
6
5
  export default libxml2;
7
6
 
8
-
9
-
10
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/libxml2-2.0",
3
- "version": "2.0.0-3.3.0",
3
+ "version": "2.0.0-4.0.0-beta.2",
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",
@@ -8,31 +8,26 @@
8
8
  "exports": {
9
9
  "./ambient": {
10
10
  "types": "./libxml2-2.0-ambient.d.ts",
11
+ "import": "./libxml2-2.0-ambient.js",
11
12
  "default": "./libxml2-2.0-ambient.js"
12
13
  },
13
14
  "./import": {
14
15
  "types": "./libxml2-2.0-import.d.ts",
16
+ "import": "./libxml2-2.0-import.js",
15
17
  "default": "./libxml2-2.0-import.js"
16
18
  },
17
19
  ".": {
18
- "import": {
19
- "types": "./libxml2-2.0.d.ts",
20
- "default": "./libxml2-2.0.js"
21
- },
22
- "require": {
23
- "types": "./libxml2-2.0.d.cts",
24
- "default": "./libxml2-2.0.cjs"
25
- }
20
+ "types": "./libxml2-2.0.d.ts",
21
+ "import": "./libxml2-2.0.js",
22
+ "default": "./libxml2-2.0.js"
26
23
  }
27
24
  },
28
25
  "scripts": {
29
- "test": "yarn test:esm && yarn test:cjs",
30
- "test:esm": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit libxml2-2.0.d.ts",
31
- "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit libxml2-2.0.d.cts"
26
+ "test": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit libxml2-2.0.d.ts"
32
27
  },
33
28
  "dependencies": {
34
- "@girs/gjs": "^3.3.0",
35
- "@girs/gobject-2.0": "^2.78.0-3.3.0"
29
+ "@girs/gjs": "^4.0.0-beta.2",
30
+ "@girs/gobject-2.0": "^2.80.0-4.0.0-beta.2"
36
31
  },
37
32
  "devDependencies": {
38
33
  "typescript": "*"
package/libxml2-2.0.cjs DELETED
@@ -1,11 +0,0 @@
1
-
2
-
3
- imports.gi.versions.libxml2 = '2.0'
4
- const libxml2 = imports.gi.libxml2;
5
-
6
- module.exports = libxml2;
7
-
8
-
9
-
10
-
11
-
package/libxml2-2.0.d.cts DELETED
@@ -1,108 +0,0 @@
1
-
2
- /*
3
- * Type Definitions for Gjs (https://gjs.guide/)
4
- *
5
- * These type definitions are automatically generated, do not edit them by hand.
6
- * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
7
- */
8
-
9
- import './libxml2-2.0-ambient.d.ts';
10
- import './libxml2-2.0-import.d.ts';
11
- /**
12
- * libxml2-2.0
13
- */
14
-
15
- import type GObject from '@girs/gobject-2.0';
16
-
17
- export function dummy(): void
18
- export interface Node {
19
- }
20
-
21
- export class Node {
22
-
23
- // Own properties of libxml2-2.0.libxml2.Node
24
-
25
- static name: string
26
- }
27
-
28
- export interface NodePtr {
29
- }
30
-
31
- export class NodePtr {
32
-
33
- // Own properties of libxml2-2.0.libxml2.NodePtr
34
-
35
- static name: string
36
- }
37
-
38
- export interface Doc {
39
- }
40
-
41
- export class Doc {
42
-
43
- // Own properties of libxml2-2.0.libxml2.Doc
44
-
45
- static name: string
46
- }
47
-
48
- export interface DocPtr {
49
- }
50
-
51
- export class DocPtr {
52
-
53
- // Own properties of libxml2-2.0.libxml2.DocPtr
54
-
55
- static name: string
56
- }
57
-
58
- export interface NsPtr {
59
- }
60
-
61
- export class NsPtr {
62
-
63
- // Own properties of libxml2-2.0.libxml2.NsPtr
64
-
65
- static name: string
66
- }
67
-
68
- export interface Char {
69
- }
70
-
71
- export class Char {
72
-
73
- // Own properties of libxml2-2.0.libxml2.Char
74
-
75
- static name: string
76
- }
77
-
78
- export interface TextWriter {
79
- }
80
-
81
- export class TextWriter {
82
-
83
- // Own properties of libxml2-2.0.libxml2.TextWriter
84
-
85
- static name: string
86
- }
87
-
88
- export interface TextReader {
89
- }
90
-
91
- export class TextReader {
92
-
93
- // Own properties of libxml2-2.0.libxml2.TextReader
94
-
95
- static name: string
96
- }
97
-
98
- /**
99
- * Name of the imported GIR library
100
- * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
101
- */
102
- export const __name__: string
103
- /**
104
- * Version of the imported GIR library
105
- * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
106
- */
107
- export const __version__: string
108
- // END