@girs/msg-0 0.0.0-4.0.0-rc.15 → 0.0.0-4.0.0

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/msg-0.d.ts +65 -102
  3. package/package.json +9 -9
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/msg-0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Msg-0, generated from library version 0.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-rc.15.
8
+ GJS TypeScript type definitions for Msg-0, generated from library version 0.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0.
9
9
 
10
10
  ## Install
11
11
 
package/msg-0.d.ts CHANGED
@@ -64,7 +64,7 @@ export namespace Msg {
64
64
  static PROTOCOL_ERROR: number;
65
65
 
66
66
  // Constructors
67
- constructor(options: { message: string, code: number });
67
+ constructor(options: { message: string; code: number });
68
68
  }
69
69
 
70
70
 
@@ -94,13 +94,10 @@ export namespace Msg {
94
94
 
95
95
  namespace Contact {
96
96
  // Signal signatures
97
- interface SignalSignatures extends GObject.Object.SignalSignatures {
98
- }
97
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
99
98
 
100
99
  // Constructor properties interface
101
- interface ConstructorProps extends GObject.Object.ConstructorProps {
102
-
103
- }
100
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
104
101
  }
105
102
 
106
103
  /**
@@ -188,9 +185,7 @@ export namespace Msg {
188
185
  }
189
186
 
190
187
  // Constructor properties interface
191
- interface ConstructorProps extends Service.ConstructorProps {
192
-
193
- }
188
+ interface ConstructorProps extends Service.ConstructorProps {}
194
189
  }
195
190
 
196
191
  /**
@@ -235,7 +230,7 @@ export namespace Msg {
235
230
  * @param cancellable a {@link Gio.Cancellable}
236
231
  * @returns a new {@link Msg.Contact}
237
232
  */
238
- create(contact: Contact, cancellable: (Gio.Cancellable | null)): Contact;
233
+ create(contact: Contact, cancellable: Gio.Cancellable | null): Contact;
239
234
 
240
235
  /**
241
236
  * Delets #contact.
@@ -243,26 +238,23 @@ export namespace Msg {
243
238
  * @param cancellable a {@link Gio.Cancellable}
244
239
  * @returns `true` for succes, else `false`
245
240
  */
246
- ["delete"](contact: Contact, cancellable: (Gio.Cancellable | null)): boolean;
241
+ ["delete"](contact: Contact, cancellable: Gio.Cancellable | null): boolean;
247
242
 
248
243
  /**
249
244
  * Get all contacts accessed by contact service.
250
245
  * @param cancellable a cancellable
251
246
  * @returns all contacts
252
247
  */
253
- get_contacts(cancellable: (Gio.Cancellable | null)): Contact[];
248
+ get_contacts(cancellable: Gio.Cancellable | null): Contact[];
254
249
  }
255
250
 
256
251
 
257
252
  namespace Drive {
258
253
  // Signal signatures
259
- interface SignalSignatures extends GObject.Object.SignalSignatures {
260
- }
254
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
261
255
 
262
256
  // Constructor properties interface
263
- interface ConstructorProps extends GObject.Object.ConstructorProps {
264
-
265
- }
257
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
266
258
  }
267
259
 
268
260
  /**
@@ -358,13 +350,10 @@ export namespace Msg {
358
350
 
359
351
  namespace DriveItem {
360
352
  // Signal signatures
361
- interface SignalSignatures extends GObject.Object.SignalSignatures {
362
- }
353
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
363
354
 
364
355
  // Constructor properties interface
365
- interface ConstructorProps extends GObject.Object.ConstructorProps {
366
-
367
- }
356
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
368
357
  }
369
358
 
370
359
  /**
@@ -485,13 +474,10 @@ export namespace Msg {
485
474
 
486
475
  namespace DriveItemFile {
487
476
  // Signal signatures
488
- interface SignalSignatures extends DriveItem.SignalSignatures {
489
- }
477
+ interface SignalSignatures extends DriveItem.SignalSignatures {}
490
478
 
491
479
  // Constructor properties interface
492
- interface ConstructorProps extends DriveItem.ConstructorProps {
493
-
494
- }
480
+ interface ConstructorProps extends DriveItem.ConstructorProps {}
495
481
  }
496
482
 
497
483
  /**
@@ -548,13 +534,10 @@ export namespace Msg {
548
534
 
549
535
  namespace DriveItemFolder {
550
536
  // Signal signatures
551
- interface SignalSignatures extends DriveItem.SignalSignatures {
552
- }
537
+ interface SignalSignatures extends DriveItem.SignalSignatures {}
553
538
 
554
539
  // Constructor properties interface
555
- interface ConstructorProps extends DriveItem.ConstructorProps {
556
-
557
- }
540
+ interface ConstructorProps extends DriveItem.ConstructorProps {}
558
541
  }
559
542
 
560
543
  /**
@@ -603,9 +586,7 @@ export namespace Msg {
603
586
  }
604
587
 
605
588
  // Constructor properties interface
606
- interface ConstructorProps extends Service.ConstructorProps {
607
-
608
- }
589
+ interface ConstructorProps extends Service.ConstructorProps {}
609
590
  }
610
591
 
611
592
  /**
@@ -651,7 +632,7 @@ export namespace Msg {
651
632
  * @param cancellable a cancellable
652
633
  * @returns a new drive item
653
634
  */
654
- add_item_to_folder(parent: DriveItem, item: DriveItem, cancellable: (Gio.Cancellable | null)): DriveItem;
635
+ add_item_to_folder(parent: DriveItem, item: DriveItem, cancellable: Gio.Cancellable | null): DriveItem;
655
636
 
656
637
  /**
657
638
  * Copy a file async on remote server to a new directory.
@@ -660,7 +641,7 @@ export namespace Msg {
660
641
  * @param cancellable a {@link Gio.Cancellable}
661
642
  * @returns `true` if accepted, `false` on error
662
643
  */
663
- copy_file(file: DriveItem, destination: DriveItem, cancellable: (Gio.Cancellable | null)): boolean;
644
+ copy_file(file: DriveItem, destination: DriveItem, cancellable: Gio.Cancellable | null): boolean;
664
645
 
665
646
  /**
666
647
  * Creates a new folder called name under parent.
@@ -669,7 +650,7 @@ export namespace Msg {
669
650
  * @param cancellable a cancellable
670
651
  * @returns a newly created {@link Msg.DriveItem}
671
652
  */
672
- create_folder(parent: DriveItem, name: string, cancellable: (Gio.Cancellable | null)): DriveItem;
653
+ create_folder(parent: DriveItem, name: string, cancellable: Gio.Cancellable | null): DriveItem;
673
654
 
674
655
  /**
675
656
  * Deletes item.
@@ -677,7 +658,7 @@ export namespace Msg {
677
658
  * @param cancellable a cancellable
678
659
  * @returns `true` when item has been deleted, otherwise `false`
679
660
  */
680
- ["delete"](item: DriveItem, cancellable: (Gio.Cancellable | null)): boolean;
661
+ ["delete"](item: DriveItem, cancellable: Gio.Cancellable | null): boolean;
681
662
 
682
663
  /**
683
664
  * Download item
@@ -685,7 +666,7 @@ export namespace Msg {
685
666
  * @param cancellable a {@link Gio.Cancellable}
686
667
  * @returns input stream of drive item
687
668
  */
688
- download_item(item: DriveItem, cancellable: (Gio.Cancellable | null)): Gio.InputStream;
669
+ download_item(item: DriveItem, cancellable: Gio.Cancellable | null): Gio.InputStream;
689
670
 
690
671
  /**
691
672
  * Download url
@@ -693,14 +674,14 @@ export namespace Msg {
693
674
  * @param cancellable a {@link Gio.Cancellable}
694
675
  * @returns a new {@link Gio.InputStream} for url
695
676
  */
696
- download_url(url: string, cancellable: (Gio.Cancellable | null)): Gio.InputStream;
677
+ download_url(url: string, cancellable: Gio.Cancellable | null): Gio.InputStream;
697
678
 
698
679
  /**
699
680
  * Queries the Microsoft Graph API for all the drives of the currently logged in user
700
681
  * @param cancellable a {@link Gio.Cancellable}
701
682
  * @returns all drives the user can access
702
683
  */
703
- get_drives(cancellable: (Gio.Cancellable | null)): Drive[];
684
+ get_drives(cancellable: Gio.Cancellable | null): Drive[];
704
685
 
705
686
  /**
706
687
  * Get root item of selected drive
@@ -708,14 +689,14 @@ export namespace Msg {
708
689
  * @param cancellable a {@link Gio.Cancellable}
709
690
  * @returns root 'MsgDriveItem'
710
691
  */
711
- get_root(drive: Drive, cancellable: (Gio.Cancellable | null)): DriveItem;
692
+ get_root(drive: Drive, cancellable: Gio.Cancellable | null): DriveItem;
712
693
 
713
694
  /**
714
695
  * Requests all shared with me items
715
696
  * @param cancellable a {@link Gio.Cancellable}
716
697
  * @returns shared with me list
717
698
  */
718
- get_shared_with_me(cancellable: (Gio.Cancellable | null)): DriveItem[];
699
+ get_shared_with_me(cancellable: Gio.Cancellable | null): DriveItem[];
719
700
 
720
701
  /**
721
702
  * Get a list of all files in folder item
@@ -723,7 +704,7 @@ export namespace Msg {
723
704
  * @param cancellable a {@link Gio.Cancellable}
724
705
  * @returns all items in folder
725
706
  */
726
- list_children(item: DriveItem, cancellable: (Gio.Cancellable | null)): DriveItem[];
707
+ list_children(item: DriveItem, cancellable: Gio.Cancellable | null): DriveItem[];
727
708
 
728
709
  /**
729
710
  * Move a file async on remote server to a new directory.
@@ -732,7 +713,7 @@ export namespace Msg {
732
713
  * @param cancellable a {@link Gio.Cancellable}
733
714
  * @returns moved {@link Msg.DriveItem}
734
715
  */
735
- move_file(file: DriveItem, destination: DriveItem, cancellable: (Gio.Cancellable | null)): DriveItem;
716
+ move_file(file: DriveItem, destination: DriveItem, cancellable: Gio.Cancellable | null): DriveItem;
736
717
 
737
718
  /**
738
719
  * Sets a new drive item name
@@ -741,7 +722,7 @@ export namespace Msg {
741
722
  * @param cancellable a {@link Gio.Cancellable}
742
723
  * @returns the renamed {@link Msg.DriveItem}
743
724
  */
744
- rename(item: DriveItem, new_name: string, cancellable: (Gio.Cancellable | null)): DriveItem;
725
+ rename(item: DriveItem, new_name: string, cancellable: Gio.Cancellable | null): DriveItem;
745
726
 
746
727
  /**
747
728
  * Creates an update stream for drive item in order to update it's content.
@@ -749,7 +730,7 @@ export namespace Msg {
749
730
  * @param cancellable a cancellable
750
731
  * @returns an output stream
751
732
  */
752
- update(item: DriveItem, cancellable: (Gio.Cancellable | null)): Gio.OutputStream;
733
+ update(item: DriveItem, cancellable: Gio.Cancellable | null): Gio.OutputStream;
753
734
 
754
735
  /**
755
736
  * Finish a update session of given #item.
@@ -758,7 +739,7 @@ export namespace Msg {
758
739
  * @param cancellable a {@link Gio.Cancellable}
759
740
  * @returns a new {@link Msg.DriveItem} or `null` on error.
760
741
  */
761
- update_finish(item: DriveItem, stream: Gio.OutputStream, cancellable: (Gio.Cancellable | null)): DriveItem;
742
+ update_finish(item: DriveItem, stream: Gio.OutputStream, cancellable: Gio.Cancellable | null): DriveItem;
762
743
  }
763
744
 
764
745
 
@@ -848,7 +829,7 @@ export namespace Msg {
848
829
  * @param cancellable An optional {@link Gio.Cancellable} object, or `null`.
849
830
  * @returns `true` if the authorizer now has a valid token.
850
831
  */
851
- refresh_authorization(cancellable: (Gio.Cancellable | null)): boolean;
832
+ refresh_authorization(cancellable: Gio.Cancellable | null): boolean;
852
833
 
853
834
  /**
854
835
  * Adds the necessary authorization to `message`. The type of `message`
@@ -869,19 +850,16 @@ export namespace Msg {
869
850
  * @param cancellable An optional {@link Gio.Cancellable} object, or `null`.
870
851
  * @virtual
871
852
  */
872
- vfunc_refresh_authorization(cancellable: (Gio.Cancellable | null)): boolean;
853
+ vfunc_refresh_authorization(cancellable: Gio.Cancellable | null): boolean;
873
854
  }
874
855
 
875
856
 
876
857
  namespace InputStream {
877
858
  // Signal signatures
878
- interface SignalSignatures extends Gio.InputStream.SignalSignatures {
879
- }
859
+ interface SignalSignatures extends Gio.InputStream.SignalSignatures {}
880
860
 
881
861
  // Constructor properties interface
882
- interface ConstructorProps extends Gio.InputStream.ConstructorProps, Gio.Seekable.ConstructorProps {
883
-
884
- }
862
+ interface ConstructorProps extends Gio.InputStream.ConstructorProps, Gio.Seekable.ConstructorProps {}
885
863
  }
886
864
 
887
865
  /**
@@ -932,7 +910,7 @@ export namespace Msg {
932
910
  * @param cancellable
933
911
  * @param callback
934
912
  */
935
- static send_async(stream: Gio.InputStream, io_priority: number, cancellable: (Gio.Cancellable | null), callback: (Gio.AsyncReadyCallback<InputStream> | null)): void;
913
+ static send_async(stream: Gio.InputStream, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<InputStream> | null): void;
936
914
 
937
915
  /**
938
916
  * @param stream
@@ -973,7 +951,7 @@ export namespace Msg {
973
951
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
974
952
  * @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
975
953
  */
976
- seek(offset: (bigint | number), type: GLib.SeekType, cancellable: (Gio.Cancellable | null)): boolean;
954
+ seek(offset: bigint | number, type: GLib.SeekType, cancellable: Gio.Cancellable | null): boolean;
977
955
 
978
956
  /**
979
957
  * Tells the current position within the stream.
@@ -995,7 +973,7 @@ export namespace Msg {
995
973
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
996
974
  * @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
997
975
  */
998
- truncate(offset: (bigint | number), cancellable: (Gio.Cancellable | null)): boolean;
976
+ truncate(offset: bigint | number, cancellable: Gio.Cancellable | null): boolean;
999
977
 
1000
978
  /**
1001
979
  * Tests if the stream supports the {@link Gio.SeekableIface}.
@@ -1030,13 +1008,13 @@ export namespace Msg {
1030
1008
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
1031
1009
  * @virtual
1032
1010
  */
1033
- vfunc_seek(offset: number, type: GLib.SeekType, cancellable: (Gio.Cancellable | null)): boolean;
1011
+ vfunc_seek(offset: number, type: GLib.SeekType, cancellable: Gio.Cancellable | null): boolean;
1034
1012
 
1035
1013
  /**
1036
1014
  * Tells the current position within the stream.
1037
1015
  * @virtual
1038
1016
  */
1039
- vfunc_tell(): (bigint | number);
1017
+ vfunc_tell(): bigint | number;
1040
1018
 
1041
1019
  /**
1042
1020
  * Sets the length of the stream to `offset`. If the stream was previously
@@ -1052,19 +1030,16 @@ export namespace Msg {
1052
1030
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
1053
1031
  * @virtual
1054
1032
  */
1055
- vfunc_truncate_fn(offset: number, cancellable: (Gio.Cancellable | null)): boolean;
1033
+ vfunc_truncate_fn(offset: number, cancellable: Gio.Cancellable | null): boolean;
1056
1034
  }
1057
1035
 
1058
1036
 
1059
1037
  namespace MailFolder {
1060
1038
  // Signal signatures
1061
- interface SignalSignatures extends GObject.Object.SignalSignatures {
1062
- }
1039
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
1063
1040
 
1064
1041
  // Constructor properties interface
1065
- interface ConstructorProps extends GObject.Object.ConstructorProps {
1066
-
1067
- }
1042
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
1068
1043
  }
1069
1044
 
1070
1045
  /**
@@ -1125,13 +1100,10 @@ export namespace Msg {
1125
1100
 
1126
1101
  namespace Message {
1127
1102
  // Signal signatures
1128
- interface SignalSignatures extends GObject.Object.SignalSignatures {
1129
- }
1103
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
1130
1104
 
1131
1105
  // Constructor properties interface
1132
- interface ConstructorProps extends GObject.Object.ConstructorProps {
1133
-
1134
- }
1106
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
1135
1107
  }
1136
1108
 
1137
1109
  /**
@@ -1206,9 +1178,7 @@ export namespace Msg {
1206
1178
  }
1207
1179
 
1208
1180
  // Constructor properties interface
1209
- interface ConstructorProps extends Service.ConstructorProps {
1210
-
1211
- }
1181
+ interface ConstructorProps extends Service.ConstructorProps {}
1212
1182
  }
1213
1183
 
1214
1184
  /**
@@ -1253,7 +1223,7 @@ export namespace Msg {
1253
1223
  * @param cancellable a {@link Gio.Cancellable}
1254
1224
  * @returns a new {@link Msg.Message}
1255
1225
  */
1256
- create_draft(message: Message, cancellable: (Gio.Cancellable | null)): Message;
1226
+ create_draft(message: Message, cancellable: Gio.Cancellable | null): Message;
1257
1227
 
1258
1228
  /**
1259
1229
  * Delets #message.
@@ -1261,7 +1231,7 @@ export namespace Msg {
1261
1231
  * @param cancellable a {@link Gio.Cancellable}
1262
1232
  * @returns `true` for succes, else &FALSE
1263
1233
  */
1264
- ["delete"](message: Message, cancellable: (Gio.Cancellable | null)): boolean;
1234
+ ["delete"](message: Message, cancellable: Gio.Cancellable | null): boolean;
1265
1235
 
1266
1236
  /**
1267
1237
  * Get a specific mail folder for given service
@@ -1269,21 +1239,21 @@ export namespace Msg {
1269
1239
  * @param cancellable a {@link Gio.Cancellable}
1270
1240
  * @returns a {@link Msg.MailFolder}
1271
1241
  */
1272
- get_mail_folder(type: MessageMailFolderType, cancellable: (Gio.Cancellable | null)): MailFolder;
1242
+ get_mail_folder(type: MessageMailFolderType, cancellable: Gio.Cancellable | null): MailFolder;
1273
1243
 
1274
1244
  /**
1275
1245
  * Get all folders for given service
1276
1246
  * @param cancellable a {@link Gio.Cancellable}
1277
1247
  * @returns all mail folders the user can access
1278
1248
  */
1279
- get_mail_folders(cancellable: (Gio.Cancellable | null)): MailFolder[];
1249
+ get_mail_folders(cancellable: Gio.Cancellable | null): MailFolder[];
1280
1250
 
1281
1251
  /**
1282
1252
  * Get all messages for given service
1283
1253
  * @param cancellable a {@link Gio.Cancellable}
1284
1254
  * @returns all messages the user can access
1285
1255
  */
1286
- get_messages(cancellable: (Gio.Cancellable | null)): Message[];
1256
+ get_messages(cancellable: Gio.Cancellable | null): Message[];
1287
1257
  }
1288
1258
 
1289
1259
 
@@ -1396,7 +1366,7 @@ export namespace Msg {
1396
1366
  * @param authorization_code
1397
1367
  * @param cancellable
1398
1368
  */
1399
- request_authorization(authorization_code: string, cancellable: (Gio.Cancellable | null)): boolean;
1369
+ request_authorization(authorization_code: string, cancellable: Gio.Cancellable | null): boolean;
1400
1370
 
1401
1371
  /**
1402
1372
  * Adds the necessary authorization to `message`. The type of `message`
@@ -1416,7 +1386,7 @@ export namespace Msg {
1416
1386
  * @param cancellable An optional {@link Gio.Cancellable} object, or `null`.
1417
1387
  * @returns `true` if the authorizer now has a valid token.
1418
1388
  */
1419
- refresh_authorization(cancellable: (Gio.Cancellable | null)): boolean;
1389
+ refresh_authorization(cancellable: Gio.Cancellable | null): boolean;
1420
1390
 
1421
1391
  /**
1422
1392
  * Adds the necessary authorization to `message`. The type of `message`
@@ -1437,7 +1407,7 @@ export namespace Msg {
1437
1407
  * @param cancellable An optional {@link Gio.Cancellable} object, or `null`.
1438
1408
  * @virtual
1439
1409
  */
1440
- vfunc_refresh_authorization(cancellable: (Gio.Cancellable | null)): boolean;
1410
+ vfunc_refresh_authorization(cancellable: Gio.Cancellable | null): boolean;
1441
1411
  }
1442
1412
 
1443
1413
 
@@ -1515,7 +1485,7 @@ export namespace Msg {
1515
1485
  * @param bytes input bytes containing response buffer
1516
1486
  * @param object a pointer to the returning root object
1517
1487
  */
1518
- static parse_response(bytes: (GLib.Bytes | Uint8Array), object: Json.Object): Json.Parser;
1488
+ static parse_response(bytes: GLib.Bytes | Uint8Array, object: Json.Object): Json.Parser;
1519
1489
 
1520
1490
  // Methods
1521
1491
  /**
@@ -1543,7 +1513,7 @@ export namespace Msg {
1543
1513
  /**
1544
1514
  * @param cancellable
1545
1515
  */
1546
- refresh_authorization(cancellable: (Gio.Cancellable | null)): boolean;
1516
+ refresh_authorization(cancellable: Gio.Cancellable | null): boolean;
1547
1517
 
1548
1518
  /**
1549
1519
  * Adds authorizer information to `message` and send it.
@@ -1551,7 +1521,7 @@ export namespace Msg {
1551
1521
  * @param cancellable a {@link Gio.Cancellable}
1552
1522
  * @returns a {@link Gio.InputStream}
1553
1523
  */
1554
- send(message: Soup.Message, cancellable: (Gio.Cancellable | null)): Gio.InputStream;
1524
+ send(message: Soup.Message, cancellable: Gio.Cancellable | null): Gio.InputStream;
1555
1525
 
1556
1526
  /**
1557
1527
  * A combination of `msg_service_send_and_read` and `msg_service_parse_response`
@@ -1560,7 +1530,7 @@ export namespace Msg {
1560
1530
  * @param cancellable a {@link Gio.Cancellable}
1561
1531
  * @returns a {@link Json.Parser} or `null` on error
1562
1532
  */
1563
- send_and_parse_response(message: Soup.Message, object: Json.Object, cancellable: (Gio.Cancellable | null)): Json.Parser;
1533
+ send_and_parse_response(message: Soup.Message, object: Json.Object, cancellable: Gio.Cancellable | null): Json.Parser;
1564
1534
 
1565
1535
  /**
1566
1536
  * Adds authorizer information to `message` and send it.
@@ -1568,19 +1538,16 @@ export namespace Msg {
1568
1538
  * @param cancellable a {@link Gio.Cancellable}
1569
1539
  * @returns a {@link GLib.Bytes} or `null` on error.
1570
1540
  */
1571
- send_and_read(message: Soup.Message, cancellable: (Gio.Cancellable | null)): GLib.Bytes;
1541
+ send_and_read(message: Soup.Message, cancellable: Gio.Cancellable | null): GLib.Bytes;
1572
1542
  }
1573
1543
 
1574
1544
 
1575
1545
  namespace User {
1576
1546
  // Signal signatures
1577
- interface SignalSignatures extends GObject.Object.SignalSignatures {
1578
- }
1547
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
1579
1548
 
1580
1549
  // Constructor properties interface
1581
- interface ConstructorProps extends GObject.Object.ConstructorProps {
1582
-
1583
- }
1550
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
1584
1551
  }
1585
1552
 
1586
1553
  /**
@@ -1636,9 +1603,7 @@ export namespace Msg {
1636
1603
  }
1637
1604
 
1638
1605
  // Constructor properties interface
1639
- interface ConstructorProps extends Service.ConstructorProps {
1640
-
1641
- }
1606
+ interface ConstructorProps extends Service.ConstructorProps {}
1642
1607
  }
1643
1608
 
1644
1609
  /**
@@ -1683,7 +1648,7 @@ export namespace Msg {
1683
1648
  * @param cancellable a {@link Gio.Cancellable}
1684
1649
  * @returns request user
1685
1650
  */
1686
- get_user(name: string, cancellable: (Gio.Cancellable | null)): User;
1651
+ get_user(name: string, cancellable: Gio.Cancellable | null): User;
1687
1652
  }
1688
1653
 
1689
1654
 
@@ -1845,14 +1810,12 @@ export namespace Msg {
1845
1810
  * @param cancellable An optional {@link Gio.Cancellable} object, or `null`.
1846
1811
  * @virtual
1847
1812
  */
1848
- vfunc_refresh_authorization(cancellable: (Gio.Cancellable | null)): boolean;
1813
+ vfunc_refresh_authorization(cancellable: Gio.Cancellable | null): boolean;
1849
1814
  }
1850
1815
 
1851
1816
 
1852
1817
  // Constructor properties interface
1853
- interface ConstructorProps extends GObject.Object.ConstructorProps {
1854
-
1855
- }
1818
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
1856
1819
  }
1857
1820
 
1858
1821
  export interface AuthorizerNamespace {
@@ -1883,7 +1846,7 @@ export namespace Msg {
1883
1846
  * @param cancellable An optional {@link Gio.Cancellable} object, or `null`.
1884
1847
  * @returns `true` if the authorizer now has a valid token.
1885
1848
  */
1886
- refresh_authorization(cancellable: (Gio.Cancellable | null)): boolean;
1849
+ refresh_authorization(cancellable: Gio.Cancellable | null): boolean;
1887
1850
  }
1888
1851
 
1889
1852
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/msg-0",
3
- "version": "0.0.0-4.0.0-rc.15",
3
+ "version": "0.0.0-4.0.0",
4
4
  "description": "GJS TypeScript type definitions for Msg-0, generated from library version 0.0.0",
5
5
  "type": "module",
6
6
  "module": "msg-0.js",
@@ -31,14 +31,14 @@
31
31
  "test": "tsc --project tsconfig.json"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/gjs": "4.0.0-rc.15",
35
- "@girs/soup-3.0": "3.6.6-4.0.0-rc.15",
36
- "@girs/gio-2.0": "2.88.0-4.0.0-rc.15",
37
- "@girs/gobject-2.0": "2.88.0-4.0.0-rc.15",
38
- "@girs/glib-2.0": "2.88.0-4.0.0-rc.15",
39
- "@girs/gmodule-2.0": "2.0.0-4.0.0-rc.15",
40
- "@girs/json-1.0": "1.10.8-4.0.0-rc.15",
41
- "@girs/goa-1.0": "3.58.0-4.0.0-rc.15" },
34
+ "@girs/gjs": "4.0.0",
35
+ "@girs/soup-3.0": "3.6.6-4.0.0",
36
+ "@girs/gio-2.0": "2.88.0-4.0.0",
37
+ "@girs/gobject-2.0": "2.88.0-4.0.0",
38
+ "@girs/glib-2.0": "2.88.0-4.0.0",
39
+ "@girs/gmodule-2.0": "2.0.0-4.0.0",
40
+ "@girs/json-1.0": "1.10.8-4.0.0",
41
+ "@girs/goa-1.0": "3.58.0-4.0.0" },
42
42
  "devDependencies": {
43
43
  "typescript": "*"
44
44
  },