@girs/deviced-1.0 3.27.4-4.0.0-beta.21 → 3.27.4-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/deviced-1.0.d.ts +339 -77
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Deviced-1.0, generated from library version 3.27.4 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.
|
|
8
|
+
GJS TypeScript type definitions for Deviced-1.0, generated from library version 3.27.4 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.24.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/deviced-1.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';
|
|
@@ -48,6 +50,15 @@ export namespace Deviced {
|
|
|
48
50
|
*/
|
|
49
51
|
const VERSION_S: string;
|
|
50
52
|
namespace AppInfo {
|
|
53
|
+
// Signal signatures
|
|
54
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
55
|
+
'notify::commit-id': (pspec: GObject.ParamSpec) => void;
|
|
56
|
+
'notify::id': (pspec: GObject.ParamSpec) => void;
|
|
57
|
+
'notify::installed-size': (pspec: GObject.ParamSpec) => void;
|
|
58
|
+
'notify::name': (pspec: GObject.ParamSpec) => void;
|
|
59
|
+
'notify::provider': (pspec: GObject.ParamSpec) => void;
|
|
60
|
+
}
|
|
61
|
+
|
|
51
62
|
// Constructor properties interface
|
|
52
63
|
|
|
53
64
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
@@ -81,22 +92,48 @@ export namespace Deviced {
|
|
|
81
92
|
get provider(): string;
|
|
82
93
|
set provider(val: string);
|
|
83
94
|
|
|
95
|
+
/**
|
|
96
|
+
* Compile-time signal type information.
|
|
97
|
+
*
|
|
98
|
+
* This instance property is generated only for TypeScript type checking.
|
|
99
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
100
|
+
* @internal
|
|
101
|
+
*/
|
|
102
|
+
$signals: AppInfo.SignalSignatures;
|
|
103
|
+
|
|
84
104
|
// Constructors
|
|
85
105
|
|
|
86
106
|
constructor(properties?: Partial<AppInfo.ConstructorProps>, ...args: any[]);
|
|
87
107
|
|
|
88
108
|
_init(...args: any[]): void;
|
|
89
|
-
}
|
|
90
109
|
|
|
91
|
-
|
|
92
|
-
// Signal callback interfaces
|
|
110
|
+
// Signals
|
|
93
111
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
112
|
+
connect<K extends keyof AppInfo.SignalSignatures>(
|
|
113
|
+
signal: K,
|
|
114
|
+
callback: GObject.SignalCallback<this, AppInfo.SignalSignatures[K]>,
|
|
115
|
+
): number;
|
|
116
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
117
|
+
connect_after<K extends keyof AppInfo.SignalSignatures>(
|
|
118
|
+
signal: K,
|
|
119
|
+
callback: GObject.SignalCallback<this, AppInfo.SignalSignatures[K]>,
|
|
120
|
+
): number;
|
|
121
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
122
|
+
emit<K extends keyof AppInfo.SignalSignatures>(
|
|
123
|
+
signal: K,
|
|
124
|
+
...args: GObject.GjsParameters<AppInfo.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
125
|
+
): void;
|
|
126
|
+
emit(signal: string, ...args: any[]): void;
|
|
127
|
+
}
|
|
97
128
|
|
|
98
|
-
|
|
99
|
-
|
|
129
|
+
namespace Browser {
|
|
130
|
+
// Signal signatures
|
|
131
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
132
|
+
'device-added': (arg0: Device) => void;
|
|
133
|
+
'device-removed': (arg0: Device) => void;
|
|
134
|
+
'notify::certificate': (pspec: GObject.ParamSpec) => void;
|
|
135
|
+
'notify::enable-ipv4': (pspec: GObject.ParamSpec) => void;
|
|
136
|
+
'notify::enable-ipv6': (pspec: GObject.ParamSpec) => void;
|
|
100
137
|
}
|
|
101
138
|
|
|
102
139
|
// Constructor properties interface
|
|
@@ -129,6 +166,15 @@ export namespace Deviced {
|
|
|
129
166
|
get enableIpv6(): boolean;
|
|
130
167
|
set enableIpv6(val: boolean);
|
|
131
168
|
|
|
169
|
+
/**
|
|
170
|
+
* Compile-time signal type information.
|
|
171
|
+
*
|
|
172
|
+
* This instance property is generated only for TypeScript type checking.
|
|
173
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
174
|
+
* @internal
|
|
175
|
+
*/
|
|
176
|
+
$signals: Browser.SignalSignatures;
|
|
177
|
+
|
|
132
178
|
// Constructors
|
|
133
179
|
|
|
134
180
|
constructor(properties?: Partial<Browser.ConstructorProps>, ...args: any[]);
|
|
@@ -139,15 +185,21 @@ export namespace Deviced {
|
|
|
139
185
|
|
|
140
186
|
// Signals
|
|
141
187
|
|
|
142
|
-
connect
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
188
|
+
connect<K extends keyof Browser.SignalSignatures>(
|
|
189
|
+
signal: K,
|
|
190
|
+
callback: GObject.SignalCallback<this, Browser.SignalSignatures[K]>,
|
|
191
|
+
): number;
|
|
192
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
193
|
+
connect_after<K extends keyof Browser.SignalSignatures>(
|
|
194
|
+
signal: K,
|
|
195
|
+
callback: GObject.SignalCallback<this, Browser.SignalSignatures[K]>,
|
|
196
|
+
): number;
|
|
197
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
198
|
+
emit<K extends keyof Browser.SignalSignatures>(
|
|
199
|
+
signal: K,
|
|
200
|
+
...args: GObject.GjsParameters<Browser.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
201
|
+
): void;
|
|
202
|
+
emit(signal: string, ...args: any[]): void;
|
|
151
203
|
|
|
152
204
|
// Virtual methods
|
|
153
205
|
|
|
@@ -242,14 +294,22 @@ export namespace Deviced {
|
|
|
242
294
|
}
|
|
243
295
|
|
|
244
296
|
namespace Client {
|
|
245
|
-
// Signal
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
(
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
(
|
|
297
|
+
// Signal signatures
|
|
298
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
299
|
+
notification: (arg0: string, arg1: GLib.Variant) => void;
|
|
300
|
+
'service-added': (arg0: string) => void;
|
|
301
|
+
'notify::arch': (pspec: GObject.ParamSpec) => void;
|
|
302
|
+
'notify::kernel': (pspec: GObject.ParamSpec) => void;
|
|
303
|
+
'notify::name': (pspec: GObject.ParamSpec) => void;
|
|
304
|
+
'notify::system': (pspec: GObject.ParamSpec) => void;
|
|
305
|
+
'notify::timeout': (pspec: GObject.ParamSpec) => void;
|
|
306
|
+
'notify::triplet': (pspec: GObject.ParamSpec) => void;
|
|
307
|
+
'notification::arch': (arg0: string, arg1: GLib.Variant) => void;
|
|
308
|
+
'notification::kernel': (arg0: string, arg1: GLib.Variant) => void;
|
|
309
|
+
'notification::name': (arg0: string, arg1: GLib.Variant) => void;
|
|
310
|
+
'notification::system': (arg0: string, arg1: GLib.Variant) => void;
|
|
311
|
+
'notification::timeout': (arg0: string, arg1: GLib.Variant) => void;
|
|
312
|
+
'notification::triplet': (arg0: string, arg1: GLib.Variant) => void;
|
|
253
313
|
}
|
|
254
314
|
|
|
255
315
|
// Constructor properties interface
|
|
@@ -277,6 +337,15 @@ export namespace Deviced {
|
|
|
277
337
|
set timeout(val: number);
|
|
278
338
|
get triplet(): string;
|
|
279
339
|
|
|
340
|
+
/**
|
|
341
|
+
* Compile-time signal type information.
|
|
342
|
+
*
|
|
343
|
+
* This instance property is generated only for TypeScript type checking.
|
|
344
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
345
|
+
* @internal
|
|
346
|
+
*/
|
|
347
|
+
$signals: Client.SignalSignatures;
|
|
348
|
+
|
|
280
349
|
// Constructors
|
|
281
350
|
|
|
282
351
|
constructor(properties?: Partial<Client.ConstructorProps>, ...args: any[]);
|
|
@@ -285,21 +354,21 @@ export namespace Deviced {
|
|
|
285
354
|
|
|
286
355
|
// Signals
|
|
287
356
|
|
|
288
|
-
connect
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
connect(
|
|
292
|
-
signal: 'notification',
|
|
293
|
-
callback: (_source: this, method: string, params: GLib.Variant) => void,
|
|
357
|
+
connect<K extends keyof Client.SignalSignatures>(
|
|
358
|
+
signal: K,
|
|
359
|
+
callback: GObject.SignalCallback<this, Client.SignalSignatures[K]>,
|
|
294
360
|
): number;
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
361
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
362
|
+
connect_after<K extends keyof Client.SignalSignatures>(
|
|
363
|
+
signal: K,
|
|
364
|
+
callback: GObject.SignalCallback<this, Client.SignalSignatures[K]>,
|
|
298
365
|
): number;
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
366
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
367
|
+
emit<K extends keyof Client.SignalSignatures>(
|
|
368
|
+
signal: K,
|
|
369
|
+
...args: GObject.GjsParameters<Client.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
370
|
+
): void;
|
|
371
|
+
emit(signal: string, ...args: any[]): void;
|
|
303
372
|
|
|
304
373
|
// Virtual methods
|
|
305
374
|
|
|
@@ -838,6 +907,15 @@ export namespace Deviced {
|
|
|
838
907
|
}
|
|
839
908
|
|
|
840
909
|
namespace Device {
|
|
910
|
+
// Signal signatures
|
|
911
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
912
|
+
'notify::icon-name': (pspec: GObject.ParamSpec) => void;
|
|
913
|
+
'notify::id': (pspec: GObject.ParamSpec) => void;
|
|
914
|
+
'notify::kind': (pspec: GObject.ParamSpec) => void;
|
|
915
|
+
'notify::machine-id': (pspec: GObject.ParamSpec) => void;
|
|
916
|
+
'notify::name': (pspec: GObject.ParamSpec) => void;
|
|
917
|
+
}
|
|
918
|
+
|
|
841
919
|
// Constructor properties interface
|
|
842
920
|
|
|
843
921
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
@@ -870,12 +948,39 @@ export namespace Deviced {
|
|
|
870
948
|
get name(): string;
|
|
871
949
|
set name(val: string);
|
|
872
950
|
|
|
951
|
+
/**
|
|
952
|
+
* Compile-time signal type information.
|
|
953
|
+
*
|
|
954
|
+
* This instance property is generated only for TypeScript type checking.
|
|
955
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
956
|
+
* @internal
|
|
957
|
+
*/
|
|
958
|
+
$signals: Device.SignalSignatures;
|
|
959
|
+
|
|
873
960
|
// Constructors
|
|
874
961
|
|
|
875
962
|
constructor(properties?: Partial<Device.ConstructorProps>, ...args: any[]);
|
|
876
963
|
|
|
877
964
|
_init(...args: any[]): void;
|
|
878
965
|
|
|
966
|
+
// Signals
|
|
967
|
+
|
|
968
|
+
connect<K extends keyof Device.SignalSignatures>(
|
|
969
|
+
signal: K,
|
|
970
|
+
callback: GObject.SignalCallback<this, Device.SignalSignatures[K]>,
|
|
971
|
+
): number;
|
|
972
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
973
|
+
connect_after<K extends keyof Device.SignalSignatures>(
|
|
974
|
+
signal: K,
|
|
975
|
+
callback: GObject.SignalCallback<this, Device.SignalSignatures[K]>,
|
|
976
|
+
): number;
|
|
977
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
978
|
+
emit<K extends keyof Device.SignalSignatures>(
|
|
979
|
+
signal: K,
|
|
980
|
+
...args: GObject.GjsParameters<Device.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
981
|
+
): void;
|
|
982
|
+
emit(signal: string, ...args: any[]): void;
|
|
983
|
+
|
|
879
984
|
// Virtual methods
|
|
880
985
|
|
|
881
986
|
/**
|
|
@@ -952,6 +1057,11 @@ export namespace Deviced {
|
|
|
952
1057
|
}
|
|
953
1058
|
|
|
954
1059
|
namespace FlatpakService {
|
|
1060
|
+
// Signal signatures
|
|
1061
|
+
interface SignalSignatures extends Service.SignalSignatures {
|
|
1062
|
+
'notify::client': (pspec: GObject.ParamSpec) => void;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
955
1065
|
// Constructor properties interface
|
|
956
1066
|
|
|
957
1067
|
interface ConstructorProps extends Service.ConstructorProps {}
|
|
@@ -960,6 +1070,15 @@ export namespace Deviced {
|
|
|
960
1070
|
class FlatpakService extends Service {
|
|
961
1071
|
static $gtype: GObject.GType<FlatpakService>;
|
|
962
1072
|
|
|
1073
|
+
/**
|
|
1074
|
+
* Compile-time signal type information.
|
|
1075
|
+
*
|
|
1076
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1077
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1078
|
+
* @internal
|
|
1079
|
+
*/
|
|
1080
|
+
$signals: FlatpakService.SignalSignatures;
|
|
1081
|
+
|
|
963
1082
|
// Constructors
|
|
964
1083
|
|
|
965
1084
|
constructor(properties?: Partial<FlatpakService.ConstructorProps>, ...args: any[]);
|
|
@@ -971,6 +1090,24 @@ export namespace Deviced {
|
|
|
971
1090
|
|
|
972
1091
|
static ['new'](...args: never[]): any;
|
|
973
1092
|
|
|
1093
|
+
// Signals
|
|
1094
|
+
|
|
1095
|
+
connect<K extends keyof FlatpakService.SignalSignatures>(
|
|
1096
|
+
signal: K,
|
|
1097
|
+
callback: GObject.SignalCallback<this, FlatpakService.SignalSignatures[K]>,
|
|
1098
|
+
): number;
|
|
1099
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1100
|
+
connect_after<K extends keyof FlatpakService.SignalSignatures>(
|
|
1101
|
+
signal: K,
|
|
1102
|
+
callback: GObject.SignalCallback<this, FlatpakService.SignalSignatures[K]>,
|
|
1103
|
+
): number;
|
|
1104
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1105
|
+
emit<K extends keyof FlatpakService.SignalSignatures>(
|
|
1106
|
+
signal: K,
|
|
1107
|
+
...args: GObject.GjsParameters<FlatpakService.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1108
|
+
): void;
|
|
1109
|
+
emit(signal: string, ...args: any[]): void;
|
|
1110
|
+
|
|
974
1111
|
// Methods
|
|
975
1112
|
|
|
976
1113
|
install_bundle_async(path: string, cancellable?: Gio.Cancellable | null): Promise<boolean>;
|
|
@@ -988,6 +1125,18 @@ export namespace Deviced {
|
|
|
988
1125
|
}
|
|
989
1126
|
|
|
990
1127
|
namespace NetworkClient {
|
|
1128
|
+
// Signal signatures
|
|
1129
|
+
interface SignalSignatures extends Client.SignalSignatures {
|
|
1130
|
+
'notify::address': (pspec: GObject.ParamSpec) => void;
|
|
1131
|
+
'notify::certificate': (pspec: GObject.ParamSpec) => void;
|
|
1132
|
+
'notify::arch': (pspec: GObject.ParamSpec) => void;
|
|
1133
|
+
'notify::kernel': (pspec: GObject.ParamSpec) => void;
|
|
1134
|
+
'notify::name': (pspec: GObject.ParamSpec) => void;
|
|
1135
|
+
'notify::system': (pspec: GObject.ParamSpec) => void;
|
|
1136
|
+
'notify::timeout': (pspec: GObject.ParamSpec) => void;
|
|
1137
|
+
'notify::triplet': (pspec: GObject.ParamSpec) => void;
|
|
1138
|
+
}
|
|
1139
|
+
|
|
991
1140
|
// Constructor properties interface
|
|
992
1141
|
|
|
993
1142
|
interface ConstructorProps extends Client.ConstructorProps {
|
|
@@ -1008,6 +1157,15 @@ export namespace Deviced {
|
|
|
1008
1157
|
get address(): Gio.InetSocketAddress;
|
|
1009
1158
|
get certificate(): Gio.TlsCertificate;
|
|
1010
1159
|
|
|
1160
|
+
/**
|
|
1161
|
+
* Compile-time signal type information.
|
|
1162
|
+
*
|
|
1163
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1164
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1165
|
+
* @internal
|
|
1166
|
+
*/
|
|
1167
|
+
$signals: NetworkClient.SignalSignatures;
|
|
1168
|
+
|
|
1011
1169
|
// Constructors
|
|
1012
1170
|
|
|
1013
1171
|
constructor(properties?: Partial<NetworkClient.ConstructorProps>, ...args: any[]);
|
|
@@ -1016,6 +1174,24 @@ export namespace Deviced {
|
|
|
1016
1174
|
|
|
1017
1175
|
static ['new'](address: Gio.InetSocketAddress, certificate?: Gio.TlsCertificate | null): NetworkClient;
|
|
1018
1176
|
|
|
1177
|
+
// Signals
|
|
1178
|
+
|
|
1179
|
+
connect<K extends keyof NetworkClient.SignalSignatures>(
|
|
1180
|
+
signal: K,
|
|
1181
|
+
callback: GObject.SignalCallback<this, NetworkClient.SignalSignatures[K]>,
|
|
1182
|
+
): number;
|
|
1183
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1184
|
+
connect_after<K extends keyof NetworkClient.SignalSignatures>(
|
|
1185
|
+
signal: K,
|
|
1186
|
+
callback: GObject.SignalCallback<this, NetworkClient.SignalSignatures[K]>,
|
|
1187
|
+
): number;
|
|
1188
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1189
|
+
emit<K extends keyof NetworkClient.SignalSignatures>(
|
|
1190
|
+
signal: K,
|
|
1191
|
+
...args: GObject.GjsParameters<NetworkClient.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1192
|
+
): void;
|
|
1193
|
+
emit(signal: string, ...args: any[]): void;
|
|
1194
|
+
|
|
1019
1195
|
// Methods
|
|
1020
1196
|
|
|
1021
1197
|
/**
|
|
@@ -1031,6 +1207,17 @@ export namespace Deviced {
|
|
|
1031
1207
|
}
|
|
1032
1208
|
|
|
1033
1209
|
namespace NetworkDevice {
|
|
1210
|
+
// Signal signatures
|
|
1211
|
+
interface SignalSignatures extends Device.SignalSignatures {
|
|
1212
|
+
'notify::address': (pspec: GObject.ParamSpec) => void;
|
|
1213
|
+
'notify::certificate': (pspec: GObject.ParamSpec) => void;
|
|
1214
|
+
'notify::icon-name': (pspec: GObject.ParamSpec) => void;
|
|
1215
|
+
'notify::id': (pspec: GObject.ParamSpec) => void;
|
|
1216
|
+
'notify::kind': (pspec: GObject.ParamSpec) => void;
|
|
1217
|
+
'notify::machine-id': (pspec: GObject.ParamSpec) => void;
|
|
1218
|
+
'notify::name': (pspec: GObject.ParamSpec) => void;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1034
1221
|
// Constructor properties interface
|
|
1035
1222
|
|
|
1036
1223
|
interface ConstructorProps extends Device.ConstructorProps {
|
|
@@ -1047,12 +1234,39 @@ export namespace Deviced {
|
|
|
1047
1234
|
get address(): Gio.InetSocketAddress;
|
|
1048
1235
|
get certificate(): Gio.TlsCertificate;
|
|
1049
1236
|
|
|
1237
|
+
/**
|
|
1238
|
+
* Compile-time signal type information.
|
|
1239
|
+
*
|
|
1240
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1241
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1242
|
+
* @internal
|
|
1243
|
+
*/
|
|
1244
|
+
$signals: NetworkDevice.SignalSignatures;
|
|
1245
|
+
|
|
1050
1246
|
// Constructors
|
|
1051
1247
|
|
|
1052
1248
|
constructor(properties?: Partial<NetworkDevice.ConstructorProps>, ...args: any[]);
|
|
1053
1249
|
|
|
1054
1250
|
_init(...args: any[]): void;
|
|
1055
1251
|
|
|
1252
|
+
// Signals
|
|
1253
|
+
|
|
1254
|
+
connect<K extends keyof NetworkDevice.SignalSignatures>(
|
|
1255
|
+
signal: K,
|
|
1256
|
+
callback: GObject.SignalCallback<this, NetworkDevice.SignalSignatures[K]>,
|
|
1257
|
+
): number;
|
|
1258
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1259
|
+
connect_after<K extends keyof NetworkDevice.SignalSignatures>(
|
|
1260
|
+
signal: K,
|
|
1261
|
+
callback: GObject.SignalCallback<this, NetworkDevice.SignalSignatures[K]>,
|
|
1262
|
+
): number;
|
|
1263
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1264
|
+
emit<K extends keyof NetworkDevice.SignalSignatures>(
|
|
1265
|
+
signal: K,
|
|
1266
|
+
...args: GObject.GjsParameters<NetworkDevice.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1267
|
+
): void;
|
|
1268
|
+
emit(signal: string, ...args: any[]): void;
|
|
1269
|
+
|
|
1056
1270
|
// Methods
|
|
1057
1271
|
|
|
1058
1272
|
/**
|
|
@@ -1070,14 +1284,11 @@ export namespace Deviced {
|
|
|
1070
1284
|
}
|
|
1071
1285
|
|
|
1072
1286
|
namespace ProcessService {
|
|
1073
|
-
// Signal
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
(
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
interface ProcessSignaled {
|
|
1080
|
-
(identifier: string, term_sig: number): void;
|
|
1287
|
+
// Signal signatures
|
|
1288
|
+
interface SignalSignatures extends Service.SignalSignatures {
|
|
1289
|
+
'process-exited': (arg0: string, arg1: number) => void;
|
|
1290
|
+
'process-signaled': (arg0: string, arg1: number) => void;
|
|
1291
|
+
'notify::client': (pspec: GObject.ParamSpec) => void;
|
|
1081
1292
|
}
|
|
1082
1293
|
|
|
1083
1294
|
// Constructor properties interface
|
|
@@ -1088,6 +1299,15 @@ export namespace Deviced {
|
|
|
1088
1299
|
class ProcessService extends Service {
|
|
1089
1300
|
static $gtype: GObject.GType<ProcessService>;
|
|
1090
1301
|
|
|
1302
|
+
/**
|
|
1303
|
+
* Compile-time signal type information.
|
|
1304
|
+
*
|
|
1305
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1306
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1307
|
+
* @internal
|
|
1308
|
+
*/
|
|
1309
|
+
$signals: ProcessService.SignalSignatures;
|
|
1310
|
+
|
|
1091
1311
|
// Constructors
|
|
1092
1312
|
|
|
1093
1313
|
constructor(properties?: Partial<ProcessService.ConstructorProps>, ...args: any[]);
|
|
@@ -1101,27 +1321,21 @@ export namespace Deviced {
|
|
|
1101
1321
|
|
|
1102
1322
|
// Signals
|
|
1103
1323
|
|
|
1104
|
-
connect
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
connect(
|
|
1108
|
-
signal: 'process-exited',
|
|
1109
|
-
callback: (_source: this, identifier: string, exit_code: number) => void,
|
|
1110
|
-
): number;
|
|
1111
|
-
connect_after(
|
|
1112
|
-
signal: 'process-exited',
|
|
1113
|
-
callback: (_source: this, identifier: string, exit_code: number) => void,
|
|
1114
|
-
): number;
|
|
1115
|
-
emit(signal: 'process-exited', identifier: string, exit_code: number): void;
|
|
1116
|
-
connect(
|
|
1117
|
-
signal: 'process-signaled',
|
|
1118
|
-
callback: (_source: this, identifier: string, term_sig: number) => void,
|
|
1324
|
+
connect<K extends keyof ProcessService.SignalSignatures>(
|
|
1325
|
+
signal: K,
|
|
1326
|
+
callback: GObject.SignalCallback<this, ProcessService.SignalSignatures[K]>,
|
|
1119
1327
|
): number;
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1328
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1329
|
+
connect_after<K extends keyof ProcessService.SignalSignatures>(
|
|
1330
|
+
signal: K,
|
|
1331
|
+
callback: GObject.SignalCallback<this, ProcessService.SignalSignatures[K]>,
|
|
1123
1332
|
): number;
|
|
1124
|
-
|
|
1333
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1334
|
+
emit<K extends keyof ProcessService.SignalSignatures>(
|
|
1335
|
+
signal: K,
|
|
1336
|
+
...args: GObject.GjsParameters<ProcessService.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1337
|
+
): void;
|
|
1338
|
+
emit(signal: string, ...args: any[]): void;
|
|
1125
1339
|
|
|
1126
1340
|
// Methods
|
|
1127
1341
|
|
|
@@ -1271,10 +1485,11 @@ export namespace Deviced {
|
|
|
1271
1485
|
}
|
|
1272
1486
|
|
|
1273
1487
|
namespace Service {
|
|
1274
|
-
// Signal
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1488
|
+
// Signal signatures
|
|
1489
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
1490
|
+
notification: (arg0: string, arg1: GLib.Variant) => void;
|
|
1491
|
+
'notify::client': (pspec: GObject.ParamSpec) => void;
|
|
1492
|
+
'notification::client': (arg0: string, arg1: GLib.Variant) => void;
|
|
1278
1493
|
}
|
|
1279
1494
|
|
|
1280
1495
|
// Constructor properties interface
|
|
@@ -1291,6 +1506,15 @@ export namespace Deviced {
|
|
|
1291
1506
|
|
|
1292
1507
|
get client(): Client;
|
|
1293
1508
|
|
|
1509
|
+
/**
|
|
1510
|
+
* Compile-time signal type information.
|
|
1511
|
+
*
|
|
1512
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1513
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1514
|
+
* @internal
|
|
1515
|
+
*/
|
|
1516
|
+
$signals: Service.SignalSignatures;
|
|
1517
|
+
|
|
1294
1518
|
// Constructors
|
|
1295
1519
|
|
|
1296
1520
|
constructor(properties?: Partial<Service.ConstructorProps>, ...args: any[]);
|
|
@@ -1301,15 +1525,21 @@ export namespace Deviced {
|
|
|
1301
1525
|
|
|
1302
1526
|
// Signals
|
|
1303
1527
|
|
|
1304
|
-
connect
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1528
|
+
connect<K extends keyof Service.SignalSignatures>(
|
|
1529
|
+
signal: K,
|
|
1530
|
+
callback: GObject.SignalCallback<this, Service.SignalSignatures[K]>,
|
|
1531
|
+
): number;
|
|
1532
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1533
|
+
connect_after<K extends keyof Service.SignalSignatures>(
|
|
1534
|
+
signal: K,
|
|
1535
|
+
callback: GObject.SignalCallback<this, Service.SignalSignatures[K]>,
|
|
1311
1536
|
): number;
|
|
1312
|
-
|
|
1537
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1538
|
+
emit<K extends keyof Service.SignalSignatures>(
|
|
1539
|
+
signal: K,
|
|
1540
|
+
...args: GObject.GjsParameters<Service.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1541
|
+
): void;
|
|
1542
|
+
emit(signal: string, ...args: any[]): void;
|
|
1313
1543
|
|
|
1314
1544
|
// Virtual methods
|
|
1315
1545
|
|
|
@@ -1380,6 +1610,11 @@ export namespace Deviced {
|
|
|
1380
1610
|
}
|
|
1381
1611
|
|
|
1382
1612
|
namespace TransferService {
|
|
1613
|
+
// Signal signatures
|
|
1614
|
+
interface SignalSignatures extends Service.SignalSignatures {
|
|
1615
|
+
'notify::client': (pspec: GObject.ParamSpec) => void;
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1383
1618
|
// Constructor properties interface
|
|
1384
1619
|
|
|
1385
1620
|
interface ConstructorProps extends Service.ConstructorProps {}
|
|
@@ -1388,6 +1623,15 @@ export namespace Deviced {
|
|
|
1388
1623
|
class TransferService extends Service {
|
|
1389
1624
|
static $gtype: GObject.GType<TransferService>;
|
|
1390
1625
|
|
|
1626
|
+
/**
|
|
1627
|
+
* Compile-time signal type information.
|
|
1628
|
+
*
|
|
1629
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1630
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1631
|
+
* @internal
|
|
1632
|
+
*/
|
|
1633
|
+
$signals: TransferService.SignalSignatures;
|
|
1634
|
+
|
|
1391
1635
|
// Constructors
|
|
1392
1636
|
|
|
1393
1637
|
constructor(properties?: Partial<TransferService.ConstructorProps>, ...args: any[]);
|
|
@@ -1399,6 +1643,24 @@ export namespace Deviced {
|
|
|
1399
1643
|
|
|
1400
1644
|
static ['new'](...args: never[]): any;
|
|
1401
1645
|
|
|
1646
|
+
// Signals
|
|
1647
|
+
|
|
1648
|
+
connect<K extends keyof TransferService.SignalSignatures>(
|
|
1649
|
+
signal: K,
|
|
1650
|
+
callback: GObject.SignalCallback<this, TransferService.SignalSignatures[K]>,
|
|
1651
|
+
): number;
|
|
1652
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1653
|
+
connect_after<K extends keyof TransferService.SignalSignatures>(
|
|
1654
|
+
signal: K,
|
|
1655
|
+
callback: GObject.SignalCallback<this, TransferService.SignalSignatures[K]>,
|
|
1656
|
+
): number;
|
|
1657
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1658
|
+
emit<K extends keyof TransferService.SignalSignatures>(
|
|
1659
|
+
signal: K,
|
|
1660
|
+
...args: GObject.GjsParameters<TransferService.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1661
|
+
): void;
|
|
1662
|
+
emit(signal: string, ...args: any[]): void;
|
|
1663
|
+
|
|
1402
1664
|
// Methods
|
|
1403
1665
|
|
|
1404
1666
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/deviced-1.0",
|
|
3
|
-
"version": "3.27.4-4.0.0-beta.
|
|
3
|
+
"version": "3.27.4-4.0.0-beta.24",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Deviced-1.0, generated from library version 3.27.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "deviced-1.0.js",
|
|
@@ -31,11 +31,11 @@
|
|
|
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.
|
|
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": "*"
|