@girs/msg-1 1.0.0-4.0.0-rc.15 → 1.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-1.d.ts +68 -103
  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-1)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Msg-1, generated from library version 1.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-1, generated from library version 1.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-1.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
 
@@ -117,13 +117,10 @@ export namespace Msg {
117
117
 
118
118
  namespace Drive {
119
119
  // Signal signatures
120
- interface SignalSignatures extends GObject.Object.SignalSignatures {
121
- }
120
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
122
121
 
123
122
  // Constructor properties interface
124
- interface ConstructorProps extends GObject.Object.ConstructorProps {
125
-
126
- }
123
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
127
124
  }
128
125
 
129
126
  /**
@@ -219,13 +216,10 @@ export namespace Msg {
219
216
 
220
217
  namespace DriveItem {
221
218
  // Signal signatures
222
- interface SignalSignatures extends GObject.Object.SignalSignatures {
223
- }
219
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
224
220
 
225
221
  // Constructor properties interface
226
- interface ConstructorProps extends GObject.Object.ConstructorProps {
227
-
228
- }
222
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
229
223
  }
230
224
 
231
225
  /**
@@ -356,13 +350,10 @@ export namespace Msg {
356
350
 
357
351
  namespace DriveItemFile {
358
352
  // Signal signatures
359
- interface SignalSignatures extends DriveItem.SignalSignatures {
360
- }
353
+ interface SignalSignatures extends DriveItem.SignalSignatures {}
361
354
 
362
355
  // Constructor properties interface
363
- interface ConstructorProps extends DriveItem.ConstructorProps {
364
-
365
- }
356
+ interface ConstructorProps extends DriveItem.ConstructorProps {}
366
357
  }
367
358
 
368
359
  /**
@@ -419,13 +410,10 @@ export namespace Msg {
419
410
 
420
411
  namespace DriveItemFolder {
421
412
  // Signal signatures
422
- interface SignalSignatures extends DriveItem.SignalSignatures {
423
- }
413
+ interface SignalSignatures extends DriveItem.SignalSignatures {}
424
414
 
425
415
  // Constructor properties interface
426
- interface ConstructorProps extends DriveItem.ConstructorProps {
427
-
428
- }
416
+ interface ConstructorProps extends DriveItem.ConstructorProps {}
429
417
  }
430
418
 
431
419
  /**
@@ -474,9 +462,7 @@ export namespace Msg {
474
462
  }
475
463
 
476
464
  // Constructor properties interface
477
- interface ConstructorProps extends Service.ConstructorProps {
478
-
479
- }
465
+ interface ConstructorProps extends Service.ConstructorProps {}
480
466
  }
481
467
 
482
468
  /**
@@ -522,7 +508,7 @@ export namespace Msg {
522
508
  * @param cancellable a cancellable
523
509
  * @returns a new drive item
524
510
  */
525
- add_item_to_folder(parent: DriveItem, item: DriveItem, cancellable: (Gio.Cancellable | null)): DriveItem;
511
+ add_item_to_folder(parent: DriveItem, item: DriveItem, cancellable: Gio.Cancellable | null): DriveItem;
526
512
 
527
513
  /**
528
514
  * Copy a file async on remote server to a new directory.
@@ -531,7 +517,7 @@ export namespace Msg {
531
517
  * @param cancellable a {@link Gio.Cancellable}
532
518
  * @returns `true` if accepted, `false` on error
533
519
  */
534
- copy_file(file: DriveItem, destination: DriveItem, cancellable: (Gio.Cancellable | null)): boolean;
520
+ copy_file(file: DriveItem, destination: DriveItem, cancellable: Gio.Cancellable | null): boolean;
535
521
 
536
522
  /**
537
523
  * Creates a new folder called name under parent.
@@ -540,7 +526,7 @@ export namespace Msg {
540
526
  * @param cancellable a cancellable
541
527
  * @returns a newly created {@link Msg.DriveItem}
542
528
  */
543
- create_folder(parent: DriveItem, name: string, cancellable: (Gio.Cancellable | null)): DriveItem;
529
+ create_folder(parent: DriveItem, name: string, cancellable: Gio.Cancellable | null): DriveItem;
544
530
 
545
531
  /**
546
532
  * Deletes item.
@@ -548,7 +534,7 @@ export namespace Msg {
548
534
  * @param cancellable a cancellable
549
535
  * @returns `true` when item has been deleted, otherwise `false`
550
536
  */
551
- ["delete"](item: DriveItem, cancellable: (Gio.Cancellable | null)): boolean;
537
+ ["delete"](item: DriveItem, cancellable: Gio.Cancellable | null): boolean;
552
538
 
553
539
  /**
554
540
  * Download item
@@ -556,7 +542,7 @@ export namespace Msg {
556
542
  * @param cancellable a {@link Gio.Cancellable}
557
543
  * @returns input stream of drive item
558
544
  */
559
- download_item(item: DriveItem, cancellable: (Gio.Cancellable | null)): Gio.InputStream;
545
+ download_item(item: DriveItem, cancellable: Gio.Cancellable | null): Gio.InputStream;
560
546
 
561
547
  /**
562
548
  * Download url
@@ -564,14 +550,14 @@ export namespace Msg {
564
550
  * @param cancellable a {@link Gio.Cancellable}
565
551
  * @returns a new {@link Gio.InputStream} for url
566
552
  */
567
- download_url(url: string, cancellable: (Gio.Cancellable | null)): Gio.InputStream;
553
+ download_url(url: string, cancellable: Gio.Cancellable | null): Gio.InputStream;
568
554
 
569
555
  /**
570
556
  * Queries the Microsoft Graph API for all the drives of the currently logged in user
571
557
  * @param cancellable a {@link Gio.Cancellable}
572
558
  * @returns all drives the user can access
573
559
  */
574
- get_drives(cancellable: (Gio.Cancellable | null)): Drive[];
560
+ get_drives(cancellable: Gio.Cancellable | null): Drive[];
575
561
 
576
562
  /**
577
563
  * Get root item of selected drive
@@ -579,14 +565,14 @@ export namespace Msg {
579
565
  * @param cancellable a {@link Gio.Cancellable}
580
566
  * @returns root 'MsgDriveItem'
581
567
  */
582
- get_root(drive: Drive, cancellable: (Gio.Cancellable | null)): DriveItem;
568
+ get_root(drive: Drive, cancellable: Gio.Cancellable | null): DriveItem;
583
569
 
584
570
  /**
585
571
  * Requests all shared with me items
586
572
  * @param cancellable a {@link Gio.Cancellable}
587
573
  * @returns shared with me list
588
574
  */
589
- get_shared_with_me(cancellable: (Gio.Cancellable | null)): DriveItem[];
575
+ get_shared_with_me(cancellable: Gio.Cancellable | null): DriveItem[];
590
576
 
591
577
  /**
592
578
  * Get a list of all files in folder item
@@ -594,7 +580,7 @@ export namespace Msg {
594
580
  * @param cancellable a {@link Gio.Cancellable}
595
581
  * @returns all items in folder
596
582
  */
597
- list_children(item: DriveItem, cancellable: (Gio.Cancellable | null)): DriveItem[];
583
+ list_children(item: DriveItem, cancellable: Gio.Cancellable | null): DriveItem[];
598
584
 
599
585
  /**
600
586
  * Move a file async on remote server to a new directory.
@@ -603,7 +589,7 @@ export namespace Msg {
603
589
  * @param cancellable a {@link Gio.Cancellable}
604
590
  * @returns moved {@link Msg.DriveItem}
605
591
  */
606
- move_file(file: DriveItem, destination: DriveItem, cancellable: (Gio.Cancellable | null)): DriveItem;
592
+ move_file(file: DriveItem, destination: DriveItem, cancellable: Gio.Cancellable | null): DriveItem;
607
593
 
608
594
  /**
609
595
  * Sets a new drive item name
@@ -612,7 +598,7 @@ export namespace Msg {
612
598
  * @param cancellable a {@link Gio.Cancellable}
613
599
  * @returns the renamed {@link Msg.DriveItem}
614
600
  */
615
- rename(item: DriveItem, new_name: string, cancellable: (Gio.Cancellable | null)): DriveItem;
601
+ rename(item: DriveItem, new_name: string, cancellable: Gio.Cancellable | null): DriveItem;
616
602
 
617
603
  /**
618
604
  * Creates an update stream for drive item in order to update it's content.
@@ -620,7 +606,7 @@ export namespace Msg {
620
606
  * @param cancellable a cancellable
621
607
  * @returns an output stream
622
608
  */
623
- update(item: DriveItem, cancellable: (Gio.Cancellable | null)): Gio.OutputStream;
609
+ update(item: DriveItem, cancellable: Gio.Cancellable | null): Gio.OutputStream;
624
610
 
625
611
  /**
626
612
  * Finish a update session of given #item.
@@ -629,7 +615,7 @@ export namespace Msg {
629
615
  * @param cancellable a {@link Gio.Cancellable}
630
616
  * @returns a new {@link Msg.DriveItem} or `null` on error.
631
617
  */
632
- update_finish(item: DriveItem, stream: Gio.OutputStream, cancellable: (Gio.Cancellable | null)): DriveItem;
618
+ update_finish(item: DriveItem, stream: Gio.OutputStream, cancellable: Gio.Cancellable | null): DriveItem;
633
619
  }
634
620
 
635
621
 
@@ -719,7 +705,7 @@ export namespace Msg {
719
705
  * @param cancellable An optional {@link Gio.Cancellable} object, or `null`.
720
706
  * @returns `true` if the authorizer now has a valid token.
721
707
  */
722
- refresh_authorization(cancellable: (Gio.Cancellable | null)): boolean;
708
+ refresh_authorization(cancellable: Gio.Cancellable | null): boolean;
723
709
 
724
710
  /**
725
711
  * Adds the necessary authorization to `message`. The type of `message`
@@ -740,19 +726,16 @@ export namespace Msg {
740
726
  * @param cancellable An optional {@link Gio.Cancellable} object, or `null`.
741
727
  * @virtual
742
728
  */
743
- vfunc_refresh_authorization(cancellable: (Gio.Cancellable | null)): boolean;
729
+ vfunc_refresh_authorization(cancellable: Gio.Cancellable | null): boolean;
744
730
  }
745
731
 
746
732
 
747
733
  namespace InputStream {
748
734
  // Signal signatures
749
- interface SignalSignatures extends Gio.InputStream.SignalSignatures {
750
- }
735
+ interface SignalSignatures extends Gio.InputStream.SignalSignatures {}
751
736
 
752
737
  // Constructor properties interface
753
- interface ConstructorProps extends Gio.InputStream.ConstructorProps, Gio.Seekable.ConstructorProps {
754
-
755
- }
738
+ interface ConstructorProps extends Gio.InputStream.ConstructorProps, Gio.Seekable.ConstructorProps {}
756
739
  }
757
740
 
758
741
  /**
@@ -803,7 +786,7 @@ export namespace Msg {
803
786
  * @param cancellable
804
787
  * @param callback
805
788
  */
806
- static send_async(stream: Gio.InputStream, io_priority: number, cancellable: (Gio.Cancellable | null), callback: (Gio.AsyncReadyCallback<InputStream> | null)): void;
789
+ static send_async(stream: Gio.InputStream, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<InputStream> | null): void;
807
790
 
808
791
  /**
809
792
  * @param stream
@@ -844,7 +827,7 @@ export namespace Msg {
844
827
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
845
828
  * @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
846
829
  */
847
- seek(offset: (bigint | number), type: GLib.SeekType, cancellable: (Gio.Cancellable | null)): boolean;
830
+ seek(offset: bigint | number, type: GLib.SeekType, cancellable: Gio.Cancellable | null): boolean;
848
831
 
849
832
  /**
850
833
  * Tells the current position within the stream.
@@ -866,7 +849,7 @@ export namespace Msg {
866
849
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
867
850
  * @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
868
851
  */
869
- truncate(offset: (bigint | number), cancellable: (Gio.Cancellable | null)): boolean;
852
+ truncate(offset: bigint | number, cancellable: Gio.Cancellable | null): boolean;
870
853
 
871
854
  /**
872
855
  * Tests if the stream supports the {@link Gio.SeekableIface}.
@@ -901,13 +884,13 @@ export namespace Msg {
901
884
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
902
885
  * @virtual
903
886
  */
904
- vfunc_seek(offset: number, type: GLib.SeekType, cancellable: (Gio.Cancellable | null)): boolean;
887
+ vfunc_seek(offset: number, type: GLib.SeekType, cancellable: Gio.Cancellable | null): boolean;
905
888
 
906
889
  /**
907
890
  * Tells the current position within the stream.
908
891
  * @virtual
909
892
  */
910
- vfunc_tell(): (bigint | number);
893
+ vfunc_tell(): bigint | number;
911
894
 
912
895
  /**
913
896
  * Sets the length of the stream to `offset`. If the stream was previously
@@ -923,19 +906,16 @@ export namespace Msg {
923
906
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
924
907
  * @virtual
925
908
  */
926
- vfunc_truncate_fn(offset: number, cancellable: (Gio.Cancellable | null)): boolean;
909
+ vfunc_truncate_fn(offset: number, cancellable: Gio.Cancellable | null): boolean;
927
910
  }
928
911
 
929
912
 
930
913
  namespace MailFolder {
931
914
  // Signal signatures
932
- interface SignalSignatures extends GObject.Object.SignalSignatures {
933
- }
915
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
934
916
 
935
917
  // Constructor properties interface
936
- interface ConstructorProps extends GObject.Object.ConstructorProps {
937
-
938
- }
918
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
939
919
  }
940
920
 
941
921
  /**
@@ -1049,13 +1029,10 @@ export namespace Msg {
1049
1029
 
1050
1030
  namespace MailMessage {
1051
1031
  // Signal signatures
1052
- interface SignalSignatures extends GObject.Object.SignalSignatures {
1053
- }
1032
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
1054
1033
 
1055
1034
  // Constructor properties interface
1056
- interface ConstructorProps extends GObject.Object.ConstructorProps {
1057
-
1058
- }
1035
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
1059
1036
  }
1060
1037
 
1061
1038
  /**
@@ -1191,7 +1168,7 @@ export namespace Msg {
1191
1168
  * Set mail received timestamp.
1192
1169
  * @param timestamp received timestamp
1193
1170
  */
1194
- set_received_date(timestamp: (bigint | number)): void;
1171
+ set_received_date(timestamp: bigint | number): void;
1195
1172
 
1196
1173
  /**
1197
1174
  * Set mail receiver.
@@ -1226,9 +1203,7 @@ export namespace Msg {
1226
1203
  }
1227
1204
 
1228
1205
  // Constructor properties interface
1229
- interface ConstructorProps extends Service.ConstructorProps {
1230
-
1231
- }
1206
+ interface ConstructorProps extends Service.ConstructorProps {}
1232
1207
  }
1233
1208
 
1234
1209
  /**
@@ -1273,7 +1248,7 @@ export namespace Msg {
1273
1248
  * @param cancellable a {@link Gio.Cancellable}
1274
1249
  * @returns a new `MsgMail`
1275
1250
  */
1276
- create_draft_message(mail: MailMessage, cancellable: (Gio.Cancellable | null)): MailMessage;
1251
+ create_draft_message(mail: MailMessage, cancellable: Gio.Cancellable | null): MailMessage;
1277
1252
 
1278
1253
  /**
1279
1254
  * Delets #mail.
@@ -1281,13 +1256,13 @@ export namespace Msg {
1281
1256
  * @param cancellable a {@link Gio.Cancellable}
1282
1257
  * @returns `true` for succes, else &FALSE
1283
1258
  */
1284
- delete_message(mail: MailMessage, cancellable: (Gio.Cancellable | null)): boolean;
1259
+ delete_message(mail: MailMessage, cancellable: Gio.Cancellable | null): boolean;
1285
1260
 
1286
1261
  /**
1287
1262
  * @param type
1288
1263
  * @param cancellable
1289
1264
  */
1290
- get_folder_id(type: MailFolderType, cancellable: (Gio.Cancellable | null)): string;
1265
+ get_folder_id(type: MailFolderType, cancellable: Gio.Cancellable | null): string;
1291
1266
 
1292
1267
  /**
1293
1268
  * Get a specific mail folder for given service
@@ -1295,7 +1270,7 @@ export namespace Msg {
1295
1270
  * @param cancellable a {@link Gio.Cancellable}
1296
1271
  * @returns a {@link Msg.MailFolder}
1297
1272
  */
1298
- get_mail_folder(type: MailFolderType, cancellable: (Gio.Cancellable | null)): MailFolder;
1273
+ get_mail_folder(type: MailFolderType, cancellable: Gio.Cancellable | null): MailFolder;
1299
1274
 
1300
1275
  /**
1301
1276
  * Get all folders for given service
@@ -1304,7 +1279,7 @@ export namespace Msg {
1304
1279
  * @param cancellable a {@link Gio.Cancellable}
1305
1280
  * @returns all mail folders the user can access
1306
1281
  */
1307
- get_mail_folders(delta_url: string, delta_url_out: string, cancellable: (Gio.Cancellable | null)): MailFolder[];
1282
+ get_mail_folders(delta_url: string, delta_url_out: string, cancellable: Gio.Cancellable | null): MailFolder[];
1308
1283
 
1309
1284
  /**
1310
1285
  * Get all mails for given service
@@ -1317,13 +1292,13 @@ export namespace Msg {
1317
1292
  * @param cancellable a {@link Gio.Cancellable}
1318
1293
  * @returns all mails the user can access
1319
1294
  */
1320
- get_messages(folder: MailFolder, next_link: string, out_next_link: string, delta_link: string, out_delta_link: string, max_page_size: number, cancellable: (Gio.Cancellable | null)): MailMessage[];
1295
+ get_messages(folder: MailFolder, next_link: string, out_next_link: string, delta_link: string, out_delta_link: string, max_page_size: number, cancellable: Gio.Cancellable | null): MailMessage[];
1321
1296
 
1322
1297
  /**
1323
1298
  * @param mail
1324
1299
  * @param cancellable
1325
1300
  */
1326
- get_mime_message(mail: MailMessage, cancellable: (Gio.Cancellable | null)): GLib.Bytes;
1301
+ get_mime_message(mail: MailMessage, cancellable: Gio.Cancellable | null): GLib.Bytes;
1327
1302
  }
1328
1303
 
1329
1304
 
@@ -1436,7 +1411,7 @@ export namespace Msg {
1436
1411
  * @param authorization_code
1437
1412
  * @param cancellable
1438
1413
  */
1439
- request_authorization(authorization_code: string, cancellable: (Gio.Cancellable | null)): boolean;
1414
+ request_authorization(authorization_code: string, cancellable: Gio.Cancellable | null): boolean;
1440
1415
 
1441
1416
  /**
1442
1417
  * Adds the necessary authorization to `message`. The type of `message`
@@ -1456,7 +1431,7 @@ export namespace Msg {
1456
1431
  * @param cancellable An optional {@link Gio.Cancellable} object, or `null`.
1457
1432
  * @returns `true` if the authorizer now has a valid token.
1458
1433
  */
1459
- refresh_authorization(cancellable: (Gio.Cancellable | null)): boolean;
1434
+ refresh_authorization(cancellable: Gio.Cancellable | null): boolean;
1460
1435
 
1461
1436
  /**
1462
1437
  * Adds the necessary authorization to `message`. The type of `message`
@@ -1477,7 +1452,7 @@ export namespace Msg {
1477
1452
  * @param cancellable An optional {@link Gio.Cancellable} object, or `null`.
1478
1453
  * @virtual
1479
1454
  */
1480
- vfunc_refresh_authorization(cancellable: (Gio.Cancellable | null)): boolean;
1455
+ vfunc_refresh_authorization(cancellable: Gio.Cancellable | null): boolean;
1481
1456
  }
1482
1457
 
1483
1458
 
@@ -1560,7 +1535,7 @@ export namespace Msg {
1560
1535
  * @param bytes input bytes containing response buffer
1561
1536
  * @param object a pointer to the returning root object
1562
1537
  */
1563
- static parse_response(bytes: (GLib.Bytes | Uint8Array), object: Json.Object): Json.Parser;
1538
+ static parse_response(bytes: GLib.Bytes | Uint8Array, object: Json.Object): Json.Parser;
1564
1539
 
1565
1540
  // Methods
1566
1541
  /**
@@ -1588,7 +1563,7 @@ export namespace Msg {
1588
1563
  /**
1589
1564
  * @param cancellable
1590
1565
  */
1591
- refresh_authorization(cancellable: (Gio.Cancellable | null)): boolean;
1566
+ refresh_authorization(cancellable: Gio.Cancellable | null): boolean;
1592
1567
 
1593
1568
  /**
1594
1569
  * Adds authorizer information to `message` and send it.
@@ -1596,7 +1571,7 @@ export namespace Msg {
1596
1571
  * @param cancellable a {@link Gio.Cancellable}
1597
1572
  * @returns a {@link Gio.InputStream}
1598
1573
  */
1599
- send(message: Soup.Message, cancellable: (Gio.Cancellable | null)): Gio.InputStream;
1574
+ send(message: Soup.Message, cancellable: Gio.Cancellable | null): Gio.InputStream;
1600
1575
 
1601
1576
  /**
1602
1577
  * A combination of `msg_service_send_and_read` and `msg_service_parse_response`
@@ -1605,7 +1580,7 @@ export namespace Msg {
1605
1580
  * @param cancellable a {@link Gio.Cancellable}
1606
1581
  * @returns a {@link Json.Parser} or `null` on error
1607
1582
  */
1608
- send_and_parse_response(message: Soup.Message, object: Json.Object, cancellable: (Gio.Cancellable | null)): Json.Parser;
1583
+ send_and_parse_response(message: Soup.Message, object: Json.Object, cancellable: Gio.Cancellable | null): Json.Parser;
1609
1584
 
1610
1585
  /**
1611
1586
  * Adds authorizer information to `message` and send it.
@@ -1613,19 +1588,16 @@ export namespace Msg {
1613
1588
  * @param cancellable a {@link Gio.Cancellable}
1614
1589
  * @returns a {@link GLib.Bytes} or `null` on error.
1615
1590
  */
1616
- send_and_read(message: Soup.Message, cancellable: (Gio.Cancellable | null)): GLib.Bytes;
1591
+ send_and_read(message: Soup.Message, cancellable: Gio.Cancellable | null): GLib.Bytes;
1617
1592
  }
1618
1593
 
1619
1594
 
1620
1595
  namespace User {
1621
1596
  // Signal signatures
1622
- interface SignalSignatures extends GObject.Object.SignalSignatures {
1623
- }
1597
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
1624
1598
 
1625
1599
  // Constructor properties interface
1626
- interface ConstructorProps extends GObject.Object.ConstructorProps {
1627
-
1628
- }
1600
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
1629
1601
  }
1630
1602
 
1631
1603
  /**
@@ -1713,13 +1685,10 @@ export namespace Msg {
1713
1685
 
1714
1686
  namespace UserContactFolder {
1715
1687
  // Signal signatures
1716
- interface SignalSignatures extends GObject.Object.SignalSignatures {
1717
- }
1688
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
1718
1689
 
1719
1690
  // Constructor properties interface
1720
- interface ConstructorProps extends GObject.Object.ConstructorProps {
1721
-
1722
- }
1691
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
1723
1692
  }
1724
1693
 
1725
1694
  /**
@@ -1780,9 +1749,7 @@ export namespace Msg {
1780
1749
  }
1781
1750
 
1782
1751
  // Constructor properties interface
1783
- interface ConstructorProps extends Service.ConstructorProps {
1784
-
1785
- }
1752
+ interface ConstructorProps extends Service.ConstructorProps {}
1786
1753
  }
1787
1754
 
1788
1755
  /**
@@ -1827,21 +1794,21 @@ export namespace Msg {
1827
1794
  * @param cancellable a {@link Gio.Cancellable}
1828
1795
  * @returns a list of contacts with the given name.
1829
1796
  */
1830
- find_users(name: string, cancellable: (Gio.Cancellable | null)): User[];
1797
+ find_users(name: string, cancellable: Gio.Cancellable | null): User[];
1831
1798
 
1832
1799
  /**
1833
1800
  * Get all folders for given service
1834
1801
  * @param cancellable a {@link Gio.Cancellable}
1835
1802
  * @returns all user contact folders the user can access
1836
1803
  */
1837
- get_contact_folders(cancellable: (Gio.Cancellable | null)): UserContactFolder[];
1804
+ get_contact_folders(cancellable: Gio.Cancellable | null): UserContactFolder[];
1838
1805
 
1839
1806
  /**
1840
1807
  * Get all contats within users 'Contact' folder.
1841
1808
  * @param cancellable a {@link Gio.Cancellable}
1842
1809
  * @returns all contact in users contact folder
1843
1810
  */
1844
- get_contacts(cancellable: (Gio.Cancellable | null)): UserContactFolder[];
1811
+ get_contacts(cancellable: Gio.Cancellable | null): UserContactFolder[];
1845
1812
 
1846
1813
  /**
1847
1814
  * Try to load user photo using provided %mail address.
@@ -1849,7 +1816,7 @@ export namespace Msg {
1849
1816
  * @param cancellable a {@link Gio.Cancellable}
1850
1817
  * @returns user photo or `null` if not found.
1851
1818
  */
1852
- get_photo(mail: string, cancellable: (Gio.Cancellable | null)): GLib.Bytes;
1819
+ get_photo(mail: string, cancellable: Gio.Cancellable | null): GLib.Bytes;
1853
1820
 
1854
1821
  /**
1855
1822
  * Get user information
@@ -1857,7 +1824,7 @@ export namespace Msg {
1857
1824
  * @param cancellable a {@link Gio.Cancellable}
1858
1825
  * @returns request user
1859
1826
  */
1860
- get_user(name: string, cancellable: (Gio.Cancellable | null)): User;
1827
+ get_user(name: string, cancellable: Gio.Cancellable | null): User;
1861
1828
  }
1862
1829
 
1863
1830
 
@@ -2014,14 +1981,12 @@ export namespace Msg {
2014
1981
  * @param cancellable An optional {@link Gio.Cancellable} object, or `null`.
2015
1982
  * @virtual
2016
1983
  */
2017
- vfunc_refresh_authorization(cancellable: (Gio.Cancellable | null)): boolean;
1984
+ vfunc_refresh_authorization(cancellable: Gio.Cancellable | null): boolean;
2018
1985
  }
2019
1986
 
2020
1987
 
2021
1988
  // Constructor properties interface
2022
- interface ConstructorProps extends GObject.Object.ConstructorProps {
2023
-
2024
- }
1989
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
2025
1990
  }
2026
1991
 
2027
1992
  export interface AuthorizerNamespace {
@@ -2052,7 +2017,7 @@ export namespace Msg {
2052
2017
  * @param cancellable An optional {@link Gio.Cancellable} object, or `null`.
2053
2018
  * @returns `true` if the authorizer now has a valid token.
2054
2019
  */
2055
- refresh_authorization(cancellable: (Gio.Cancellable | null)): boolean;
2020
+ refresh_authorization(cancellable: Gio.Cancellable | null): boolean;
2056
2021
  }
2057
2022
 
2058
2023
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/msg-1",
3
- "version": "1.0.0-4.0.0-rc.15",
3
+ "version": "1.0.0-4.0.0",
4
4
  "description": "GJS TypeScript type definitions for Msg-1, generated from library version 1.0.0",
5
5
  "type": "module",
6
6
  "module": "msg-1.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
  },