@girs/lightdm-1 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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/lightdm-1.d.ts +222 -81
  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/lightdm-1)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for LightDM-1, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.21.
8
+ GJS TypeScript type definitions for LightDM-1, 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/lightdm-1.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';
@@ -216,30 +218,29 @@ export namespace LightDM {
216
218
  */
217
219
  function suspend(): boolean;
218
220
  namespace Greeter {
219
- // Signal callback interfaces
220
-
221
- interface AuthenticationComplete {
222
- (): void;
223
- }
224
-
225
- interface AutologinTimerExpired {
226
- (): void;
227
- }
228
-
229
- interface Idle {
230
- (): void;
231
- }
232
-
233
- interface Reset {
234
- (): void;
235
- }
236
-
237
- interface ShowMessage {
238
- (text: string, type: MessageType): void;
239
- }
240
-
241
- interface ShowPrompt {
242
- (text: string, type: PromptType): void;
221
+ // Signal signatures
222
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
223
+ 'authentication-complete': () => void;
224
+ 'autologin-timer-expired': () => void;
225
+ idle: () => void;
226
+ reset: () => void;
227
+ 'show-message': (arg0: string, arg1: MessageType) => void;
228
+ 'show-prompt': (arg0: string, arg1: PromptType) => void;
229
+ 'notify::authentication-user': (pspec: GObject.ParamSpec) => void;
230
+ 'notify::autologin-guest-hint': (pspec: GObject.ParamSpec) => void;
231
+ 'notify::autologin-session-hint': (pspec: GObject.ParamSpec) => void;
232
+ 'notify::autologin-timeout-hint': (pspec: GObject.ParamSpec) => void;
233
+ 'notify::autologin-user-hint': (pspec: GObject.ParamSpec) => void;
234
+ 'notify::default-session-hint': (pspec: GObject.ParamSpec) => void;
235
+ 'notify::has-guest-account-hint': (pspec: GObject.ParamSpec) => void;
236
+ 'notify::hide-users-hint': (pspec: GObject.ParamSpec) => void;
237
+ 'notify::in-authentication': (pspec: GObject.ParamSpec) => void;
238
+ 'notify::is-authenticated': (pspec: GObject.ParamSpec) => void;
239
+ 'notify::lock-hint': (pspec: GObject.ParamSpec) => void;
240
+ 'notify::select-guest-hint': (pspec: GObject.ParamSpec) => void;
241
+ 'notify::select-user-hint': (pspec: GObject.ParamSpec) => void;
242
+ 'notify::show-manual-login-hint': (pspec: GObject.ParamSpec) => void;
243
+ 'notify::show-remote-login-hint': (pspec: GObject.ParamSpec) => void;
243
244
  }
244
245
 
245
246
  // Constructor properties interface
@@ -318,6 +319,15 @@ export namespace LightDM {
318
319
  get show_remote_login_hint(): boolean;
319
320
  get showRemoteLoginHint(): boolean;
320
321
 
322
+ /**
323
+ * Compile-time signal type information.
324
+ *
325
+ * This instance property is generated only for TypeScript type checking.
326
+ * It is not defined at runtime and should not be accessed in JS code.
327
+ * @internal
328
+ */
329
+ $signals: Greeter.SignalSignatures;
330
+
321
331
  // Constructors
322
332
 
323
333
  constructor(properties?: Partial<Greeter.ConstructorProps>, ...args: any[]);
@@ -328,30 +338,21 @@ export namespace LightDM {
328
338
 
329
339
  // Signals
330
340
 
331
- connect(id: string, callback: (...args: any[]) => any): number;
332
- connect_after(id: string, callback: (...args: any[]) => any): number;
333
- emit(id: string, ...args: any[]): void;
334
- connect(signal: 'authentication-complete', callback: (_source: this) => void): number;
335
- connect_after(signal: 'authentication-complete', callback: (_source: this) => void): number;
336
- emit(signal: 'authentication-complete'): void;
337
- connect(signal: 'autologin-timer-expired', callback: (_source: this) => void): number;
338
- connect_after(signal: 'autologin-timer-expired', callback: (_source: this) => void): number;
339
- emit(signal: 'autologin-timer-expired'): void;
340
- connect(signal: 'idle', callback: (_source: this) => void): number;
341
- connect_after(signal: 'idle', callback: (_source: this) => void): number;
342
- emit(signal: 'idle'): void;
343
- connect(signal: 'reset', callback: (_source: this) => void): number;
344
- connect_after(signal: 'reset', callback: (_source: this) => void): number;
345
- emit(signal: 'reset'): void;
346
- connect(signal: 'show-message', callback: (_source: this, text: string, type: MessageType) => void): number;
347
- connect_after(
348
- signal: 'show-message',
349
- callback: (_source: this, text: string, type: MessageType) => void,
341
+ connect<K extends keyof Greeter.SignalSignatures>(
342
+ signal: K,
343
+ callback: GObject.SignalCallback<this, Greeter.SignalSignatures[K]>,
344
+ ): number;
345
+ connect(signal: string, callback: (...args: any[]) => any): number;
346
+ connect_after<K extends keyof Greeter.SignalSignatures>(
347
+ signal: K,
348
+ callback: GObject.SignalCallback<this, Greeter.SignalSignatures[K]>,
350
349
  ): number;
351
- emit(signal: 'show-message', text: string, type: MessageType): void;
352
- connect(signal: 'show-prompt', callback: (_source: this, text: string, type: PromptType) => void): number;
353
- connect_after(signal: 'show-prompt', callback: (_source: this, text: string, type: PromptType) => void): number;
354
- emit(signal: 'show-prompt', text: string, type: PromptType): void;
350
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
351
+ emit<K extends keyof Greeter.SignalSignatures>(
352
+ signal: K,
353
+ ...args: GObject.GjsParameters<Greeter.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
354
+ ): void;
355
+ emit(signal: string, ...args: any[]): void;
355
356
 
356
357
  // Virtual methods
357
358
 
@@ -684,6 +685,13 @@ export namespace LightDM {
684
685
  }
685
686
 
686
687
  namespace Language {
688
+ // Signal signatures
689
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
690
+ 'notify::code': (pspec: GObject.ParamSpec) => void;
691
+ 'notify::name': (pspec: GObject.ParamSpec) => void;
692
+ 'notify::territory': (pspec: GObject.ParamSpec) => void;
693
+ }
694
+
687
695
  // Constructor properties interface
688
696
 
689
697
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -706,12 +714,39 @@ export namespace LightDM {
706
714
  get name(): string;
707
715
  get territory(): string;
708
716
 
717
+ /**
718
+ * Compile-time signal type information.
719
+ *
720
+ * This instance property is generated only for TypeScript type checking.
721
+ * It is not defined at runtime and should not be accessed in JS code.
722
+ * @internal
723
+ */
724
+ $signals: Language.SignalSignatures;
725
+
709
726
  // Constructors
710
727
 
711
728
  constructor(properties?: Partial<Language.ConstructorProps>, ...args: any[]);
712
729
 
713
730
  _init(...args: any[]): void;
714
731
 
732
+ // Signals
733
+
734
+ connect<K extends keyof Language.SignalSignatures>(
735
+ signal: K,
736
+ callback: GObject.SignalCallback<this, Language.SignalSignatures[K]>,
737
+ ): number;
738
+ connect(signal: string, callback: (...args: any[]) => any): number;
739
+ connect_after<K extends keyof Language.SignalSignatures>(
740
+ signal: K,
741
+ callback: GObject.SignalCallback<this, Language.SignalSignatures[K]>,
742
+ ): number;
743
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
744
+ emit<K extends keyof Language.SignalSignatures>(
745
+ signal: K,
746
+ ...args: GObject.GjsParameters<Language.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
747
+ ): void;
748
+ emit(signal: string, ...args: any[]): void;
749
+
715
750
  // Methods
716
751
 
717
752
  /**
@@ -738,6 +773,13 @@ export namespace LightDM {
738
773
  }
739
774
 
740
775
  namespace Layout {
776
+ // Signal signatures
777
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
778
+ 'notify::description': (pspec: GObject.ParamSpec) => void;
779
+ 'notify::name': (pspec: GObject.ParamSpec) => void;
780
+ 'notify::short-description': (pspec: GObject.ParamSpec) => void;
781
+ }
782
+
741
783
  // Constructor properties interface
742
784
 
743
785
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -762,12 +804,39 @@ export namespace LightDM {
762
804
  get short_description(): string;
763
805
  get shortDescription(): string;
764
806
 
807
+ /**
808
+ * Compile-time signal type information.
809
+ *
810
+ * This instance property is generated only for TypeScript type checking.
811
+ * It is not defined at runtime and should not be accessed in JS code.
812
+ * @internal
813
+ */
814
+ $signals: Layout.SignalSignatures;
815
+
765
816
  // Constructors
766
817
 
767
818
  constructor(properties?: Partial<Layout.ConstructorProps>, ...args: any[]);
768
819
 
769
820
  _init(...args: any[]): void;
770
821
 
822
+ // Signals
823
+
824
+ connect<K extends keyof Layout.SignalSignatures>(
825
+ signal: K,
826
+ callback: GObject.SignalCallback<this, Layout.SignalSignatures[K]>,
827
+ ): number;
828
+ connect(signal: string, callback: (...args: any[]) => any): number;
829
+ connect_after<K extends keyof Layout.SignalSignatures>(
830
+ signal: K,
831
+ callback: GObject.SignalCallback<this, Layout.SignalSignatures[K]>,
832
+ ): number;
833
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
834
+ emit<K extends keyof Layout.SignalSignatures>(
835
+ signal: K,
836
+ ...args: GObject.GjsParameters<Layout.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
837
+ ): void;
838
+ emit(signal: string, ...args: any[]): void;
839
+
771
840
  // Methods
772
841
 
773
842
  /**
@@ -788,6 +857,13 @@ export namespace LightDM {
788
857
  }
789
858
 
790
859
  namespace Session {
860
+ // Signal signatures
861
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
862
+ 'notify::comment': (pspec: GObject.ParamSpec) => void;
863
+ 'notify::key': (pspec: GObject.ParamSpec) => void;
864
+ 'notify::name': (pspec: GObject.ParamSpec) => void;
865
+ }
866
+
791
867
  // Constructor properties interface
792
868
 
793
869
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -810,12 +886,39 @@ export namespace LightDM {
810
886
  get key(): string;
811
887
  get name(): string;
812
888
 
889
+ /**
890
+ * Compile-time signal type information.
891
+ *
892
+ * This instance property is generated only for TypeScript type checking.
893
+ * It is not defined at runtime and should not be accessed in JS code.
894
+ * @internal
895
+ */
896
+ $signals: Session.SignalSignatures;
897
+
813
898
  // Constructors
814
899
 
815
900
  constructor(properties?: Partial<Session.ConstructorProps>, ...args: any[]);
816
901
 
817
902
  _init(...args: any[]): void;
818
903
 
904
+ // Signals
905
+
906
+ connect<K extends keyof Session.SignalSignatures>(
907
+ signal: K,
908
+ callback: GObject.SignalCallback<this, Session.SignalSignatures[K]>,
909
+ ): number;
910
+ connect(signal: string, callback: (...args: any[]) => any): number;
911
+ connect_after<K extends keyof Session.SignalSignatures>(
912
+ signal: K,
913
+ callback: GObject.SignalCallback<this, Session.SignalSignatures[K]>,
914
+ ): number;
915
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
916
+ emit<K extends keyof Session.SignalSignatures>(
917
+ signal: K,
918
+ ...args: GObject.GjsParameters<Session.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
919
+ ): void;
920
+ emit(signal: string, ...args: any[]): void;
921
+
819
922
  // Methods
820
923
 
821
924
  /**
@@ -841,10 +944,23 @@ export namespace LightDM {
841
944
  }
842
945
 
843
946
  namespace User {
844
- // Signal callback interfaces
845
-
846
- interface Changed {
847
- (): void;
947
+ // Signal signatures
948
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
949
+ changed: () => void;
950
+ 'notify::background': (pspec: GObject.ParamSpec) => void;
951
+ 'notify::display-name': (pspec: GObject.ParamSpec) => void;
952
+ 'notify::has-messages': (pspec: GObject.ParamSpec) => void;
953
+ 'notify::home-directory': (pspec: GObject.ParamSpec) => void;
954
+ 'notify::image': (pspec: GObject.ParamSpec) => void;
955
+ 'notify::is-locked': (pspec: GObject.ParamSpec) => void;
956
+ 'notify::language': (pspec: GObject.ParamSpec) => void;
957
+ 'notify::layout': (pspec: GObject.ParamSpec) => void;
958
+ 'notify::layouts': (pspec: GObject.ParamSpec) => void;
959
+ 'notify::logged-in': (pspec: GObject.ParamSpec) => void;
960
+ 'notify::name': (pspec: GObject.ParamSpec) => void;
961
+ 'notify::real-name': (pspec: GObject.ParamSpec) => void;
962
+ 'notify::session': (pspec: GObject.ParamSpec) => void;
963
+ 'notify::uid': (pspec: GObject.ParamSpec) => void;
848
964
  }
849
965
 
850
966
  // Constructor properties interface
@@ -903,6 +1019,15 @@ export namespace LightDM {
903
1019
  get session(): string;
904
1020
  get uid(): number;
905
1021
 
1022
+ /**
1023
+ * Compile-time signal type information.
1024
+ *
1025
+ * This instance property is generated only for TypeScript type checking.
1026
+ * It is not defined at runtime and should not be accessed in JS code.
1027
+ * @internal
1028
+ */
1029
+ $signals: User.SignalSignatures;
1030
+
906
1031
  // Constructors
907
1032
 
908
1033
  constructor(properties?: Partial<User.ConstructorProps>, ...args: any[]);
@@ -911,12 +1036,21 @@ export namespace LightDM {
911
1036
 
912
1037
  // Signals
913
1038
 
914
- connect(id: string, callback: (...args: any[]) => any): number;
915
- connect_after(id: string, callback: (...args: any[]) => any): number;
916
- emit(id: string, ...args: any[]): void;
917
- connect(signal: 'changed', callback: (_source: this) => void): number;
918
- connect_after(signal: 'changed', callback: (_source: this) => void): number;
919
- emit(signal: 'changed'): void;
1039
+ connect<K extends keyof User.SignalSignatures>(
1040
+ signal: K,
1041
+ callback: GObject.SignalCallback<this, User.SignalSignatures[K]>,
1042
+ ): number;
1043
+ connect(signal: string, callback: (...args: any[]) => any): number;
1044
+ connect_after<K extends keyof User.SignalSignatures>(
1045
+ signal: K,
1046
+ callback: GObject.SignalCallback<this, User.SignalSignatures[K]>,
1047
+ ): number;
1048
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1049
+ emit<K extends keyof User.SignalSignatures>(
1050
+ signal: K,
1051
+ ...args: GObject.GjsParameters<User.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
1052
+ ): void;
1053
+ emit(signal: string, ...args: any[]): void;
920
1054
 
921
1055
  // Virtual methods
922
1056
 
@@ -997,18 +1131,13 @@ export namespace LightDM {
997
1131
  }
998
1132
 
999
1133
  namespace UserList {
1000
- // Signal callback interfaces
1001
-
1002
- interface UserAdded {
1003
- (user: User): void;
1004
- }
1005
-
1006
- interface UserChanged {
1007
- (user: User): void;
1008
- }
1009
-
1010
- interface UserRemoved {
1011
- (user: User): void;
1134
+ // Signal signatures
1135
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
1136
+ 'user-added': (arg0: User) => void;
1137
+ 'user-changed': (arg0: User) => void;
1138
+ 'user-removed': (arg0: User) => void;
1139
+ 'notify::length': (pspec: GObject.ParamSpec) => void;
1140
+ 'notify::num-users': (pspec: GObject.ParamSpec) => void;
1012
1141
  }
1013
1142
 
1014
1143
  // Constructor properties interface
@@ -1033,6 +1162,15 @@ export namespace LightDM {
1033
1162
  get num_users(): number;
1034
1163
  get numUsers(): number;
1035
1164
 
1165
+ /**
1166
+ * Compile-time signal type information.
1167
+ *
1168
+ * This instance property is generated only for TypeScript type checking.
1169
+ * It is not defined at runtime and should not be accessed in JS code.
1170
+ * @internal
1171
+ */
1172
+ $signals: UserList.SignalSignatures;
1173
+
1036
1174
  // Constructors
1037
1175
 
1038
1176
  constructor(properties?: Partial<UserList.ConstructorProps>, ...args: any[]);
@@ -1041,18 +1179,21 @@ export namespace LightDM {
1041
1179
 
1042
1180
  // Signals
1043
1181
 
1044
- connect(id: string, callback: (...args: any[]) => any): number;
1045
- connect_after(id: string, callback: (...args: any[]) => any): number;
1046
- emit(id: string, ...args: any[]): void;
1047
- connect(signal: 'user-added', callback: (_source: this, user: User) => void): number;
1048
- connect_after(signal: 'user-added', callback: (_source: this, user: User) => void): number;
1049
- emit(signal: 'user-added', user: User): void;
1050
- connect(signal: 'user-changed', callback: (_source: this, user: User) => void): number;
1051
- connect_after(signal: 'user-changed', callback: (_source: this, user: User) => void): number;
1052
- emit(signal: 'user-changed', user: User): void;
1053
- connect(signal: 'user-removed', callback: (_source: this, user: User) => void): number;
1054
- connect_after(signal: 'user-removed', callback: (_source: this, user: User) => void): number;
1055
- emit(signal: 'user-removed', user: User): void;
1182
+ connect<K extends keyof UserList.SignalSignatures>(
1183
+ signal: K,
1184
+ callback: GObject.SignalCallback<this, UserList.SignalSignatures[K]>,
1185
+ ): number;
1186
+ connect(signal: string, callback: (...args: any[]) => any): number;
1187
+ connect_after<K extends keyof UserList.SignalSignatures>(
1188
+ signal: K,
1189
+ callback: GObject.SignalCallback<this, UserList.SignalSignatures[K]>,
1190
+ ): number;
1191
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1192
+ emit<K extends keyof UserList.SignalSignatures>(
1193
+ signal: K,
1194
+ ...args: GObject.GjsParameters<UserList.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
1195
+ ): void;
1196
+ emit(signal: string, ...args: any[]): void;
1056
1197
 
1057
1198
  // Static methods
1058
1199
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/lightdm-1",
3
- "version": "1.0.0-4.0.0-beta.21",
3
+ "version": "1.0.0-4.0.0-beta.24",
4
4
  "description": "GJS TypeScript type definitions for LightDM-1, generated from library version 1.0.0",
5
5
  "type": "module",
6
6
  "module": "lightdm-1.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": "*"