@girs/gm-0 0.0.0-4.0.0-beta.21 → 0.0.0-4.0.0-beta.24

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/gm-0.d.ts +106 -0
  3. package/package.json +6 -6
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gm-0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Gm-0, generated from library version 0.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.21.
8
+ GJS TypeScript type definitions for Gm-0, generated from library version 0.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.24.
9
9
 
10
10
 
11
11
  ## Install
package/gm-0.d.ts CHANGED
@@ -7,6 +7,8 @@
7
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, ...
8
8
  */
9
9
 
10
+ import '@girs/gjs';
11
+
10
12
  // Module dependencies
11
13
  import type Gio from '@girs/gio-2.0';
12
14
  import type GObject from '@girs/gobject-2.0';
@@ -98,6 +100,13 @@ export namespace Gm {
98
100
  notify?: GLib.DestroyNotify | null,
99
101
  ): number;
100
102
  namespace Cutout {
103
+ // Signal signatures
104
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
105
+ 'notify::bounds': (pspec: GObject.ParamSpec) => void;
106
+ 'notify::name': (pspec: GObject.ParamSpec) => void;
107
+ 'notify::path': (pspec: GObject.ParamSpec) => void;
108
+ }
109
+
101
110
  // Constructor properties interface
102
111
 
103
112
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -137,6 +146,15 @@ export namespace Gm {
137
146
  */
138
147
  get path(): string;
139
148
 
149
+ /**
150
+ * Compile-time signal type information.
151
+ *
152
+ * This instance property is generated only for TypeScript type checking.
153
+ * It is not defined at runtime and should not be accessed in JS code.
154
+ * @internal
155
+ */
156
+ $signals: Cutout.SignalSignatures;
157
+
140
158
  // Constructors
141
159
 
142
160
  constructor(properties?: Partial<Cutout.ConstructorProps>, ...args: any[]);
@@ -145,6 +163,24 @@ export namespace Gm {
145
163
 
146
164
  static ['new'](path: string): Cutout;
147
165
 
166
+ // Signals
167
+
168
+ connect<K extends keyof Cutout.SignalSignatures>(
169
+ signal: K,
170
+ callback: GObject.SignalCallback<this, Cutout.SignalSignatures[K]>,
171
+ ): number;
172
+ connect(signal: string, callback: (...args: any[]) => any): number;
173
+ connect_after<K extends keyof Cutout.SignalSignatures>(
174
+ signal: K,
175
+ callback: GObject.SignalCallback<this, Cutout.SignalSignatures[K]>,
176
+ ): number;
177
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
178
+ emit<K extends keyof Cutout.SignalSignatures>(
179
+ signal: K,
180
+ ...args: GObject.GjsParameters<Cutout.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
181
+ ): void;
182
+ emit(signal: string, ...args: any[]): void;
183
+
148
184
  // Methods
149
185
 
150
186
  /**
@@ -165,6 +201,11 @@ export namespace Gm {
165
201
  }
166
202
 
167
203
  namespace DeviceInfo {
204
+ // Signal signatures
205
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
206
+ 'notify::compatibles': (pspec: GObject.ParamSpec) => void;
207
+ }
208
+
168
209
  // Constructor properties interface
169
210
 
170
211
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -191,6 +232,15 @@ export namespace Gm {
191
232
  */
192
233
  get compatibles(): string[];
193
234
 
235
+ /**
236
+ * Compile-time signal type information.
237
+ *
238
+ * This instance property is generated only for TypeScript type checking.
239
+ * It is not defined at runtime and should not be accessed in JS code.
240
+ * @internal
241
+ */
242
+ $signals: DeviceInfo.SignalSignatures;
243
+
194
244
  // Constructors
195
245
 
196
246
  constructor(properties?: Partial<DeviceInfo.ConstructorProps>, ...args: any[]);
@@ -199,6 +249,24 @@ export namespace Gm {
199
249
 
200
250
  static ['new'](compatibles: string): DeviceInfo;
201
251
 
252
+ // Signals
253
+
254
+ connect<K extends keyof DeviceInfo.SignalSignatures>(
255
+ signal: K,
256
+ callback: GObject.SignalCallback<this, DeviceInfo.SignalSignatures[K]>,
257
+ ): number;
258
+ connect(signal: string, callback: (...args: any[]) => any): number;
259
+ connect_after<K extends keyof DeviceInfo.SignalSignatures>(
260
+ signal: K,
261
+ callback: GObject.SignalCallback<this, DeviceInfo.SignalSignatures[K]>,
262
+ ): number;
263
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
264
+ emit<K extends keyof DeviceInfo.SignalSignatures>(
265
+ signal: K,
266
+ ...args: GObject.GjsParameters<DeviceInfo.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
267
+ ): void;
268
+ emit(signal: string, ...args: any[]): void;
269
+
202
270
  // Methods
203
271
 
204
272
  /**
@@ -210,6 +278,17 @@ export namespace Gm {
210
278
  }
211
279
 
212
280
  namespace DisplayPanel {
281
+ // Signal signatures
282
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
283
+ 'notify::border-radius': (pspec: GObject.ParamSpec) => void;
284
+ 'notify::cutouts': (pspec: GObject.ParamSpec) => void;
285
+ 'notify::height': (pspec: GObject.ParamSpec) => void;
286
+ 'notify::name': (pspec: GObject.ParamSpec) => void;
287
+ 'notify::width': (pspec: GObject.ParamSpec) => void;
288
+ 'notify::x-res': (pspec: GObject.ParamSpec) => void;
289
+ 'notify::y-res': (pspec: GObject.ParamSpec) => void;
290
+ }
291
+
213
292
  // Constructor properties interface
214
293
 
215
294
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -288,6 +367,15 @@ export namespace Gm {
288
367
  get yRes(): number;
289
368
  set yRes(val: number);
290
369
 
370
+ /**
371
+ * Compile-time signal type information.
372
+ *
373
+ * This instance property is generated only for TypeScript type checking.
374
+ * It is not defined at runtime and should not be accessed in JS code.
375
+ * @internal
376
+ */
377
+ $signals: DisplayPanel.SignalSignatures;
378
+
291
379
  // Constructors
292
380
 
293
381
  constructor(properties?: Partial<DisplayPanel.ConstructorProps>, ...args: any[]);
@@ -300,6 +388,24 @@ export namespace Gm {
300
388
 
301
389
  static new_from_resource(resource_name: string): DisplayPanel;
302
390
 
391
+ // Signals
392
+
393
+ connect<K extends keyof DisplayPanel.SignalSignatures>(
394
+ signal: K,
395
+ callback: GObject.SignalCallback<this, DisplayPanel.SignalSignatures[K]>,
396
+ ): number;
397
+ connect(signal: string, callback: (...args: any[]) => any): number;
398
+ connect_after<K extends keyof DisplayPanel.SignalSignatures>(
399
+ signal: K,
400
+ callback: GObject.SignalCallback<this, DisplayPanel.SignalSignatures[K]>,
401
+ ): number;
402
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
403
+ emit<K extends keyof DisplayPanel.SignalSignatures>(
404
+ signal: K,
405
+ ...args: GObject.GjsParameters<DisplayPanel.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
406
+ ): void;
407
+ emit(signal: string, ...args: any[]): void;
408
+
303
409
  // Methods
304
410
 
305
411
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gm-0",
3
- "version": "0.0.0-4.0.0-beta.21",
3
+ "version": "0.0.0-4.0.0-beta.24",
4
4
  "description": "GJS TypeScript type definitions for Gm-0, generated from library version 0.0.0",
5
5
  "type": "module",
6
6
  "module": "gm-0.js",
@@ -31,11 +31,11 @@
31
31
  "test": "tsc --project tsconfig.json"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/gio-2.0": "^2.83.3-4.0.0-beta.21",
35
- "@girs/gjs": "^4.0.0-beta.21",
36
- "@girs/glib-2.0": "^2.83.3-4.0.0-beta.21",
37
- "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.21",
38
- "@girs/gobject-2.0": "^2.83.3-4.0.0-beta.21"
34
+ "@girs/gio-2.0": "^2.84.2-4.0.0-beta.24",
35
+ "@girs/gjs": "^4.0.0-beta.24",
36
+ "@girs/glib-2.0": "^2.84.2-4.0.0-beta.24",
37
+ "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.24",
38
+ "@girs/gobject-2.0": "^2.84.2-4.0.0-beta.24"
39
39
  },
40
40
  "devDependencies": {
41
41
  "typescript": "*"