@girs/packagekitplugin-1.0 1.0.0-4.0.0-beta.21 → 1.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.
- package/README.md +1 -1
- package/package.json +7 -7
- package/packagekitplugin-1.0.d.ts +89 -10
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for PackageKitPlugin-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.
|
|
8
|
+
GJS TypeScript type definitions for PackageKitPlugin-1.0, generated from library version 1.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/packagekitplugin-1.0",
|
|
3
|
-
"version": "1.0.0-4.0.0-beta.
|
|
3
|
+
"version": "1.0.0-4.0.0-beta.24",
|
|
4
4
|
"description": "GJS TypeScript type definitions for PackageKitPlugin-1.0, generated from library version 1.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "packagekitplugin-1.0.js",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"test": "tsc --project tsconfig.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@girs/gio-2.0": "^2.
|
|
35
|
-
"@girs/gjs": "^4.0.0-beta.
|
|
36
|
-
"@girs/glib-2.0": "^2.
|
|
37
|
-
"@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.
|
|
38
|
-
"@girs/gobject-2.0": "^2.
|
|
39
|
-
"@girs/packagekitglib-1.0": "^1.2.8-4.0.0-beta.
|
|
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
|
+
"@girs/packagekitglib-1.0": "^1.2.8-4.0.0-beta.24"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"typescript": "*"
|
|
@@ -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 PackageKitGlib from '@girs/packagekitglib-1.0';
|
|
12
14
|
import type Gio from '@girs/gio-2.0';
|
|
@@ -165,6 +167,9 @@ export namespace PackageKitPlugin {
|
|
|
165
167
|
(plugin: Plugin, transaction: Transaction): void;
|
|
166
168
|
}
|
|
167
169
|
namespace Backend {
|
|
170
|
+
// Signal signatures
|
|
171
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {}
|
|
172
|
+
|
|
168
173
|
// Constructor properties interface
|
|
169
174
|
|
|
170
175
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -173,6 +178,15 @@ export namespace PackageKitPlugin {
|
|
|
173
178
|
class Backend extends GObject.Object {
|
|
174
179
|
static $gtype: GObject.GType<Backend>;
|
|
175
180
|
|
|
181
|
+
/**
|
|
182
|
+
* Compile-time signal type information.
|
|
183
|
+
*
|
|
184
|
+
* This instance property is generated only for TypeScript type checking.
|
|
185
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
186
|
+
* @internal
|
|
187
|
+
*/
|
|
188
|
+
$signals: Backend.SignalSignatures;
|
|
189
|
+
|
|
176
190
|
// Constructors
|
|
177
191
|
|
|
178
192
|
constructor(properties?: Partial<Backend.ConstructorProps>, ...args: any[]);
|
|
@@ -181,6 +195,24 @@ export namespace PackageKitPlugin {
|
|
|
181
195
|
|
|
182
196
|
static ['new'](conf: GLib.KeyFile): Backend;
|
|
183
197
|
|
|
198
|
+
// Signals
|
|
199
|
+
|
|
200
|
+
connect<K extends keyof Backend.SignalSignatures>(
|
|
201
|
+
signal: K,
|
|
202
|
+
callback: GObject.SignalCallback<this, Backend.SignalSignatures[K]>,
|
|
203
|
+
): number;
|
|
204
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
205
|
+
connect_after<K extends keyof Backend.SignalSignatures>(
|
|
206
|
+
signal: K,
|
|
207
|
+
callback: GObject.SignalCallback<this, Backend.SignalSignatures[K]>,
|
|
208
|
+
): number;
|
|
209
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
210
|
+
emit<K extends keyof Backend.SignalSignatures>(
|
|
211
|
+
signal: K,
|
|
212
|
+
...args: GObject.GjsParameters<Backend.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
213
|
+
): void;
|
|
214
|
+
emit(signal: string, ...args: any[]): void;
|
|
215
|
+
|
|
184
216
|
// Static methods
|
|
185
217
|
|
|
186
218
|
static bool_to_string(value: boolean): string;
|
|
@@ -316,6 +348,9 @@ export namespace PackageKitPlugin {
|
|
|
316
348
|
}
|
|
317
349
|
|
|
318
350
|
namespace BackendJob {
|
|
351
|
+
// Signal signatures
|
|
352
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {}
|
|
353
|
+
|
|
319
354
|
// Constructor properties interface
|
|
320
355
|
|
|
321
356
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -324,6 +359,15 @@ export namespace PackageKitPlugin {
|
|
|
324
359
|
class BackendJob extends GObject.Object {
|
|
325
360
|
static $gtype: GObject.GType<BackendJob>;
|
|
326
361
|
|
|
362
|
+
/**
|
|
363
|
+
* Compile-time signal type information.
|
|
364
|
+
*
|
|
365
|
+
* This instance property is generated only for TypeScript type checking.
|
|
366
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
367
|
+
* @internal
|
|
368
|
+
*/
|
|
369
|
+
$signals: BackendJob.SignalSignatures;
|
|
370
|
+
|
|
327
371
|
// Constructors
|
|
328
372
|
|
|
329
373
|
constructor(properties?: Partial<BackendJob.ConstructorProps>, ...args: any[]);
|
|
@@ -332,6 +376,24 @@ export namespace PackageKitPlugin {
|
|
|
332
376
|
|
|
333
377
|
static ['new'](conf: GLib.KeyFile): BackendJob;
|
|
334
378
|
|
|
379
|
+
// Signals
|
|
380
|
+
|
|
381
|
+
connect<K extends keyof BackendJob.SignalSignatures>(
|
|
382
|
+
signal: K,
|
|
383
|
+
callback: GObject.SignalCallback<this, BackendJob.SignalSignatures[K]>,
|
|
384
|
+
): number;
|
|
385
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
386
|
+
connect_after<K extends keyof BackendJob.SignalSignatures>(
|
|
387
|
+
signal: K,
|
|
388
|
+
callback: GObject.SignalCallback<this, BackendJob.SignalSignatures[K]>,
|
|
389
|
+
): number;
|
|
390
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
391
|
+
emit<K extends keyof BackendJob.SignalSignatures>(
|
|
392
|
+
signal: K,
|
|
393
|
+
...args: GObject.GjsParameters<BackendJob.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
394
|
+
): void;
|
|
395
|
+
emit(signal: string, ...args: any[]): void;
|
|
396
|
+
|
|
335
397
|
// Methods
|
|
336
398
|
|
|
337
399
|
category(parent_id: string, cat_id: string, name: string, summary: string, icon: string): void;
|
|
@@ -467,10 +529,9 @@ export namespace PackageKitPlugin {
|
|
|
467
529
|
}
|
|
468
530
|
|
|
469
531
|
namespace Transaction {
|
|
470
|
-
// Signal
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
(): void;
|
|
532
|
+
// Signal signatures
|
|
533
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
534
|
+
finished: () => void;
|
|
474
535
|
}
|
|
475
536
|
|
|
476
537
|
// Constructor properties interface
|
|
@@ -481,6 +542,15 @@ export namespace PackageKitPlugin {
|
|
|
481
542
|
class Transaction extends GObject.Object {
|
|
482
543
|
static $gtype: GObject.GType<Transaction>;
|
|
483
544
|
|
|
545
|
+
/**
|
|
546
|
+
* Compile-time signal type information.
|
|
547
|
+
*
|
|
548
|
+
* This instance property is generated only for TypeScript type checking.
|
|
549
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
550
|
+
* @internal
|
|
551
|
+
*/
|
|
552
|
+
$signals: Transaction.SignalSignatures;
|
|
553
|
+
|
|
484
554
|
// Constructors
|
|
485
555
|
|
|
486
556
|
constructor(properties?: Partial<Transaction.ConstructorProps>, ...args: any[]);
|
|
@@ -491,12 +561,21 @@ export namespace PackageKitPlugin {
|
|
|
491
561
|
|
|
492
562
|
// Signals
|
|
493
563
|
|
|
494
|
-
connect
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
564
|
+
connect<K extends keyof Transaction.SignalSignatures>(
|
|
565
|
+
signal: K,
|
|
566
|
+
callback: GObject.SignalCallback<this, Transaction.SignalSignatures[K]>,
|
|
567
|
+
): number;
|
|
568
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
569
|
+
connect_after<K extends keyof Transaction.SignalSignatures>(
|
|
570
|
+
signal: K,
|
|
571
|
+
callback: GObject.SignalCallback<this, Transaction.SignalSignatures[K]>,
|
|
572
|
+
): number;
|
|
573
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
574
|
+
emit<K extends keyof Transaction.SignalSignatures>(
|
|
575
|
+
signal: K,
|
|
576
|
+
...args: GObject.GjsParameters<Transaction.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
577
|
+
): void;
|
|
578
|
+
emit(signal: string, ...args: any[]): void;
|
|
500
579
|
|
|
501
580
|
// Static methods
|
|
502
581
|
|