@girs/xlib-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,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/xlib-2.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for xlib-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 xlib-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
10
 
11
11
  ## Install
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/xlib-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 xlib-2.0, generated from library version 2.0.0",
5
5
  "type": "module",
6
6
  "module": "xlib-2.0.js",
@@ -8,31 +8,26 @@
8
8
  "exports": {
9
9
  "./ambient": {
10
10
  "types": "./xlib-2.0-ambient.d.ts",
11
+ "import": "./xlib-2.0-ambient.js",
11
12
  "default": "./xlib-2.0-ambient.js"
12
13
  },
13
14
  "./import": {
14
15
  "types": "./xlib-2.0-import.d.ts",
16
+ "import": "./xlib-2.0-import.js",
15
17
  "default": "./xlib-2.0-import.js"
16
18
  },
17
19
  ".": {
18
- "import": {
19
- "types": "./xlib-2.0.d.ts",
20
- "default": "./xlib-2.0.js"
21
- },
22
- "require": {
23
- "types": "./xlib-2.0.d.cts",
24
- "default": "./xlib-2.0.cjs"
25
- }
20
+ "types": "./xlib-2.0.d.ts",
21
+ "import": "./xlib-2.0.js",
22
+ "default": "./xlib-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 xlib-2.0.d.ts",
31
- "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit xlib-2.0.d.cts"
26
+ "test": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit xlib-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": "*"
@@ -1,11 +1,11 @@
1
1
 
2
2
  declare module 'gi://xlib?version=2.0' {
3
- import Xlib20 from '@girs/xlib-2.0';
4
- export default Xlib20;
3
+ import xlib from '@girs/xlib-2.0';
4
+ export default xlib;
5
5
  }
6
6
 
7
7
  declare module 'gi://xlib' {
8
- import Xlib20 from '@girs/xlib-2.0';
8
+ import Xlib20 from 'gi://xlib?version=2.0';
9
9
  export default Xlib20;
10
10
  }
11
11
 
package/xlib-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 './xlib-2.0-ambient.d.ts';
10
- import './xlib-2.0-import.d.ts';
9
+
11
10
  /**
12
11
  * xlib-2.0
13
12
  */
@@ -15,132 +14,111 @@ import './xlib-2.0-import.d.ts';
15
14
  import type GObject from '@girs/gobject-2.0';
16
15
 
17
16
  export namespace xlib {
17
+ function open_display(): void;
18
+ class Display {
19
+ static $gtype: GObject.GType<Display>;
18
20
 
19
- function open_display(): void
20
- interface Display {
21
- }
21
+ // Constructors of xlib.Display
22
22
 
23
- class Display {
23
+ _init(...args: any[]): void;
24
+ }
24
25
 
25
- // Own properties of xlib-2.0.xlib.Display
26
+ class Screen {
27
+ static $gtype: GObject.GType<Screen>;
26
28
 
27
- static name: string
28
- }
29
+ // Constructors of xlib.Screen
29
30
 
30
- interface Screen {
31
- }
31
+ _init(...args: any[]): void;
32
+ }
32
33
 
33
- class Screen {
34
+ class Visual {
35
+ static $gtype: GObject.GType<Visual>;
34
36
 
35
- // Own properties of xlib-2.0.xlib.Screen
37
+ // Constructors of xlib.Visual
36
38
 
37
- static name: string
38
- }
39
+ _init(...args: any[]): void;
40
+ }
39
41
 
40
- interface Visual {
41
- }
42
+ class XConfigureEvent {
43
+ static $gtype: GObject.GType<XConfigureEvent>;
42
44
 
43
- class Visual {
45
+ // Constructors of xlib.XConfigureEvent
44
46
 
45
- // Own properties of xlib-2.0.xlib.Visual
47
+ _init(...args: any[]): void;
48
+ }
46
49
 
47
- static name: string
48
- }
50
+ class XImage {
51
+ static $gtype: GObject.GType<XImage>;
49
52
 
50
- interface XConfigureEvent {
51
- }
53
+ // Constructors of xlib.XImage
52
54
 
53
- class XConfigureEvent {
55
+ _init(...args: any[]): void;
56
+ }
54
57
 
55
- // Own properties of xlib-2.0.xlib.XConfigureEvent
58
+ class XFontStruct {
59
+ static $gtype: GObject.GType<XFontStruct>;
56
60
 
57
- static name: string
58
- }
61
+ // Constructors of xlib.XFontStruct
59
62
 
60
- interface XImage {
61
- }
63
+ _init(...args: any[]): void;
64
+ }
62
65
 
63
- class XImage {
66
+ class XTrapezoid {
67
+ static $gtype: GObject.GType<XTrapezoid>;
64
68
 
65
- // Own properties of xlib-2.0.xlib.XImage
69
+ // Constructors of xlib.XTrapezoid
66
70
 
67
- static name: string
68
- }
71
+ _init(...args: any[]): void;
72
+ }
69
73
 
70
- interface XFontStruct {
71
- }
74
+ class XVisualInfo {
75
+ static $gtype: GObject.GType<XVisualInfo>;
72
76
 
73
- class XFontStruct {
77
+ // Constructors of xlib.XVisualInfo
74
78
 
75
- // Own properties of xlib-2.0.xlib.XFontStruct
79
+ _init(...args: any[]): void;
80
+ }
76
81
 
77
- static name: string
78
- }
82
+ class XWindowAttributes {
83
+ static $gtype: GObject.GType<XWindowAttributes>;
79
84
 
80
- interface XTrapezoid {
81
- }
85
+ // Constructors of xlib.XWindowAttributes
82
86
 
83
- class XTrapezoid {
87
+ _init(...args: any[]): void;
88
+ }
84
89
 
85
- // Own properties of xlib-2.0.xlib.XTrapezoid
86
-
87
- static name: string
88
- }
89
-
90
- interface XVisualInfo {
91
- }
90
+ class XEvent {
91
+ static $gtype: GObject.GType<XEvent>;
92
92
 
93
- class XVisualInfo {
93
+ // Constructors of xlib.XEvent
94
94
 
95
- // Own properties of xlib-2.0.xlib.XVisualInfo
95
+ _init(...args: any[]): void;
96
+ }
96
97
 
97
- static name: string
98
- }
99
-
100
- interface XWindowAttributes {
101
- }
102
-
103
- class XWindowAttributes {
104
-
105
- // Own properties of xlib-2.0.xlib.XWindowAttributes
106
-
107
- static name: string
108
- }
109
-
110
- interface XEvent {
111
- }
112
-
113
- class XEvent {
114
-
115
- // Own properties of xlib-2.0.xlib.XEvent
116
-
117
- static name: string
118
- }
119
-
120
- type Atom = number
121
- type Colormap = number
122
- type Cursor = number
123
- type Drawable = number
124
- type GC = any
125
- type KeyCode = number
126
- type KeySym = number
127
- type Picture = number
128
- type Time = number
129
- type VisualID = number
130
- type Window = number
131
- type XID = number
132
- type Pixmap = number
133
- /**
134
- * Name of the imported GIR library
135
- * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
136
- */
137
- const __name__: string
138
- /**
139
- * Version of the imported GIR library
140
- * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
141
- */
142
- const __version__: string
98
+ type Atom = number;
99
+ type Colormap = number;
100
+ type Cursor = number;
101
+ type Drawable = number;
102
+ type GC = any;
103
+ type KeyCode = number;
104
+ type KeySym = number;
105
+ type Picture = number;
106
+ type Time = number;
107
+ type VisualID = number;
108
+ type Window = number;
109
+ type XID = number;
110
+ type Pixmap = number;
111
+ /**
112
+ * Name of the imported GIR library
113
+ * `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
114
+ */
115
+ const __name__: string;
116
+ /**
117
+ * Version of the imported GIR library
118
+ * `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
119
+ */
120
+ const __version__: string;
143
121
  }
144
122
 
145
123
  export default xlib;
146
- // END
124
+ // END
package/xlib-2.0.js CHANGED
@@ -1,10 +1,6 @@
1
1
 
2
-
3
2
  // @ts-expect-error
4
3
  import xlib from 'gi://xlib?version=2.0';
5
4
  export { xlib };
6
5
  export default xlib;
7
6
 
8
-
9
-
10
-
package/xlib-2.0.cjs DELETED
@@ -1,11 +0,0 @@
1
-
2
-
3
- imports.gi.versions.xlib = '2.0'
4
- const xlib = imports.gi.xlib;
5
-
6
- module.exports = xlib;
7
-
8
-
9
-
10
-
11
-
package/xlib-2.0.d.cts DELETED
@@ -1,141 +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 './xlib-2.0-ambient.d.ts';
10
- import './xlib-2.0-import.d.ts';
11
- /**
12
- * xlib-2.0
13
- */
14
-
15
- import type GObject from '@girs/gobject-2.0';
16
-
17
- export function open_display(): void
18
- export interface Display {
19
- }
20
-
21
- export class Display {
22
-
23
- // Own properties of xlib-2.0.xlib.Display
24
-
25
- static name: string
26
- }
27
-
28
- export interface Screen {
29
- }
30
-
31
- export class Screen {
32
-
33
- // Own properties of xlib-2.0.xlib.Screen
34
-
35
- static name: string
36
- }
37
-
38
- export interface Visual {
39
- }
40
-
41
- export class Visual {
42
-
43
- // Own properties of xlib-2.0.xlib.Visual
44
-
45
- static name: string
46
- }
47
-
48
- export interface XConfigureEvent {
49
- }
50
-
51
- export class XConfigureEvent {
52
-
53
- // Own properties of xlib-2.0.xlib.XConfigureEvent
54
-
55
- static name: string
56
- }
57
-
58
- export interface XImage {
59
- }
60
-
61
- export class XImage {
62
-
63
- // Own properties of xlib-2.0.xlib.XImage
64
-
65
- static name: string
66
- }
67
-
68
- export interface XFontStruct {
69
- }
70
-
71
- export class XFontStruct {
72
-
73
- // Own properties of xlib-2.0.xlib.XFontStruct
74
-
75
- static name: string
76
- }
77
-
78
- export interface XTrapezoid {
79
- }
80
-
81
- export class XTrapezoid {
82
-
83
- // Own properties of xlib-2.0.xlib.XTrapezoid
84
-
85
- static name: string
86
- }
87
-
88
- export interface XVisualInfo {
89
- }
90
-
91
- export class XVisualInfo {
92
-
93
- // Own properties of xlib-2.0.xlib.XVisualInfo
94
-
95
- static name: string
96
- }
97
-
98
- export interface XWindowAttributes {
99
- }
100
-
101
- export class XWindowAttributes {
102
-
103
- // Own properties of xlib-2.0.xlib.XWindowAttributes
104
-
105
- static name: string
106
- }
107
-
108
- export interface XEvent {
109
- }
110
-
111
- export class XEvent {
112
-
113
- // Own properties of xlib-2.0.xlib.XEvent
114
-
115
- static name: string
116
- }
117
-
118
- export type Atom = number
119
- export type Colormap = number
120
- export type Cursor = number
121
- export type Drawable = number
122
- export type GC = any
123
- export type KeyCode = number
124
- export type KeySym = number
125
- export type Picture = number
126
- export type Time = number
127
- export type VisualID = number
128
- export type Window = number
129
- export type XID = number
130
- export type Pixmap = number
131
- /**
132
- * Name of the imported GIR library
133
- * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
134
- */
135
- export const __name__: string
136
- /**
137
- * Version of the imported GIR library
138
- * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
139
- */
140
- export const __version__: string
141
- // END