@girs/gfbgraph-0.2 0.2.0-3.2.6 → 0.2.0-3.2.8

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 CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gfbgraph-0.2)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for GFBGraph-0.2, generated from library version 0.2.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for GFBGraph-0.2, generated from library version 0.2.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.8.
9
9
 
10
10
 
11
11
  ## Install
@@ -0,0 +1,2 @@
1
+ export {}
2
+
@@ -0,0 +1,3 @@
1
+ const gi = globalThis.imports?.gi || {};
2
+ export default gi;
3
+
@@ -142,14 +142,14 @@ export interface Connectable extends Node {
142
142
  * @param payload a const #gchar with the response string from the Facebook Graph API.
143
143
  * @returns a newly-allocated #GList of #GFBGraphNode with the same #GType as @self.
144
144
  */
145
- default_parse_connected_data(payload: string | null): Node[]
145
+ default_parse_connected_data(payload: string): Node[]
146
146
  /**
147
147
  * Get the Facebook Graph API function path to retrieve the nodes connected with `node_type`
148
148
  * managed by the #GFBGraphConnectable object.
149
149
  * @param node_type a #GType, required a #GFBGRAPH_TYPE_NODE or children.
150
150
  * @returns a const #gchar with the function path or %NULL.
151
151
  */
152
- get_connection_path(node_type: GObject.GType): string | null
152
+ get_connection_path(node_type: GObject.GType): string
153
153
  /**
154
154
  * Get the params to be inserted in a request to the Facebook Graph API
155
155
  * in order to append the node `self` to a node of type `node_type`.
@@ -170,7 +170,7 @@ export interface Connectable extends Node {
170
170
  * @param payload a const #gchar with the response string from the Facebook Graph API.
171
171
  * @returns a newly-allocated #GList of #GFBGraphNode created from the @payload or %NULL.
172
172
  */
173
- parse_connected_data(payload: string | null): Node[]
173
+ parse_connected_data(payload: string): Node[]
174
174
 
175
175
  // Own virtual methods of GFBGraph-0.2.GFBGraph.Connectable
176
176
 
@@ -189,7 +189,7 @@ export interface Connectable extends Node {
189
189
  * @param payload a const #gchar with the response string from the Facebook Graph API.
190
190
  * @returns a newly-allocated #GList of #GFBGraphNode created from the @payload or %NULL.
191
191
  */
192
- vfunc_parse_connected_data(payload: string | null): Node[]
192
+ vfunc_parse_connected_data(payload: string): Node[]
193
193
 
194
194
  // Class property signals of GFBGraph-0.2.GFBGraph.Connectable
195
195
 
@@ -236,7 +236,7 @@ export module Album {
236
236
  * The number of photos in the album.
237
237
  */
238
238
  count?: number | null
239
- cover_photo?: string | null
239
+ coverPhoto?: string | null
240
240
  /**
241
241
  * The album description given by the owner.
242
242
  */
@@ -245,7 +245,6 @@ export module Album {
245
245
  * The album name.
246
246
  */
247
247
  name?: string | null
248
- coverPhoto?: string | null
249
248
  }
250
249
 
251
250
  }
@@ -258,7 +257,6 @@ export interface Album extends Connectable {
258
257
  * The number of photos in the album.
259
258
  */
260
259
  count: number
261
- cover_photo: string | null
262
260
  coverPhoto: string | null
263
261
  /**
264
262
  * The album description given by the owner.
@@ -276,19 +274,19 @@ export interface Album extends Connectable {
276
274
  // Owm methods of GFBGraph-0.2.GFBGraph.Album
277
275
 
278
276
  get_count(): number
279
- get_cover_photo_id(): string | null
280
- get_description(): string | null
281
- get_name(): string | null
277
+ get_cover_photo_id(): string
278
+ get_description(): string
279
+ get_name(): string
282
280
  /**
283
281
  * Sets the description for the `album`.
284
282
  * @param description a const pointer to a #gchar.
285
283
  */
286
- set_description(description: string | null): void
284
+ set_description(description: string): void
287
285
  /**
288
286
  * Sets the name for the `album`.
289
287
  * @param name a const pointer to a #gchar.
290
288
  */
291
- set_name(name: string | null): void
289
+ set_name(name: string): void
292
290
 
293
291
  // Class property signals of GFBGraph-0.2.GFBGraph.Album
294
292
 
@@ -360,7 +358,7 @@ export class Album extends Node {
360
358
  * @param id a const #gchar with the album ID.
361
359
  * @returns a new #GFBGraphAlbum; unref with g_object_unref()
362
360
  */
363
- static new_from_id(authorizer: Authorizer, id: string | null): Album
361
+ static new_from_id(authorizer: Authorizer, id: string): Album
364
362
 
365
363
  // Overloads of new_from_id
366
364
 
@@ -372,7 +370,7 @@ export class Album extends Node {
372
370
  * @param node_type a #GFBGraphNode type #GType.
373
371
  * @returns a #GFBGraphNode or %NULL.
374
372
  */
375
- static new_from_id(authorizer: Authorizer, id: string | null, node_type: GObject.GType): Node
373
+ static new_from_id(authorizer: Authorizer, id: string, node_type: GObject.GType): Node
376
374
  _init(config?: Album.ConstructorProperties): void
377
375
  }
378
376
 
@@ -420,7 +418,7 @@ export module Node {
420
418
 
421
419
  // Own constructor properties of GFBGraph-0.2.GFBGraph.Node
422
420
 
423
- created_time?: string | null
421
+ createdTime?: string | null
424
422
  /**
425
423
  * The node ID. All nodes have one of this.
426
424
  */
@@ -429,8 +427,6 @@ export module Node {
429
427
  * The node link. An URL to the node on Facebook.
430
428
  */
431
429
  link?: string | null
432
- updated_time?: string | null
433
- createdTime?: string | null
434
430
  updatedTime?: string | null
435
431
  }
436
432
 
@@ -440,7 +436,6 @@ export interface Node {
440
436
 
441
437
  // Own properties of GFBGraph-0.2.GFBGraph.Node
442
438
 
443
- created_time: string | null
444
439
  createdTime: string | null
445
440
  /**
446
441
  * The node ID. All nodes have one of this.
@@ -450,7 +445,6 @@ export interface Node {
450
445
  * The node link. An URL to the node on Facebook.
451
446
  */
452
447
  link: string | null
453
- updated_time: string | null
454
448
  updatedTime: string | null
455
449
 
456
450
  // Own fields of GFBGraph-0.2.GFBGraph.Node
@@ -499,24 +493,24 @@ export interface Node {
499
493
  * Gets a node created time.
500
494
  * @returns an ISO 8601 encoded date when the node was initially published.
501
495
  */
502
- get_created_time(): string | null
496
+ get_created_time(): string
503
497
  /**
504
498
  * Gets the Facebook Graph unique node ID.
505
499
  * @returns the node ID.
506
500
  */
507
- get_id(): string | null
508
- get_link(): string | null
501
+ get_id(): string
502
+ get_link(): string
509
503
  /**
510
504
  * Gets a node updated time.
511
505
  * @returns an ISO 8601 encoded date when the node was updated.
512
506
  */
513
- get_updated_time(): string | null
507
+ get_updated_time(): string
514
508
  /**
515
509
  * Sets the ID for a node. Just useful when a new node is created
516
510
  * and the Graph API returns the ID of the new created node.
517
511
  * @param id a const pointer to a #gchar.
518
512
  */
519
- set_id(id: string | null): void
513
+ set_id(id: string): void
520
514
 
521
515
  // Class property signals of GFBGraph-0.2.GFBGraph.Node
522
516
 
@@ -568,7 +562,7 @@ export class Node extends GObject.Object {
568
562
  * @param node_type a #GFBGraphNode type #GType.
569
563
  * @returns a #GFBGraphNode or %NULL.
570
564
  */
571
- static new_from_id(authorizer: Authorizer, id: string | null, node_type: GObject.GType): Node
565
+ static new_from_id(authorizer: Authorizer, id: string, node_type: GObject.GType): Node
572
566
  _init(config?: Node.ConstructorProperties): void
573
567
  static error_quark(): GLib.Quark
574
568
  }
@@ -644,13 +638,13 @@ export interface Photo extends Connectable, Json.Serializable {
644
638
  */
645
639
  download_default_size(authorizer: Authorizer): Gio.InputStream
646
640
  get_default_height(): number
647
- get_default_source_uri(): string | null
641
+ get_default_source_uri(): string
648
642
  get_default_width(): number
649
643
  get_image_hires(): PhotoImage
650
644
  get_image_near_height(height: number): PhotoImage
651
645
  get_image_near_width(width: number): PhotoImage
652
646
  get_images(): PhotoImage[]
653
- get_name(): string | null
647
+ get_name(): string
654
648
 
655
649
  // Conflicting methods
656
650
 
@@ -684,7 +678,7 @@ export interface Photo extends Connectable, Json.Serializable {
684
678
  * @param property_name the name of the property to get
685
679
  * @param value return location for the property value
686
680
  */
687
- get_property(property_name: string | null, value: any): void
681
+ get_property(property_name: string, value: any): void
688
682
  /**
689
683
  * Gets a property of an object.
690
684
  *
@@ -705,7 +699,7 @@ export interface Photo extends Connectable, Json.Serializable {
705
699
  * @param property_name the name of the property to get
706
700
  * @param value return location for the property value
707
701
  */
708
- get_property(property_name: string | null, value: any): void
702
+ get_property(property_name: string, value: any): void
709
703
  /**
710
704
  * Calls the [vfunc`Json`.Serializable.set_property] implementation
711
705
  * on the `JsonSerializable` instance, which will set the property
@@ -722,13 +716,13 @@ export interface Photo extends Connectable, Json.Serializable {
722
716
  * @param property_name the name of the property to set
723
717
  * @param value the value
724
718
  */
725
- set_property(property_name: string | null, value: any): void
719
+ set_property(property_name: string, value: any): void
726
720
  /**
727
721
  * Sets a property on an object.
728
722
  * @param property_name the name of the property to set
729
723
  * @param value the value
730
724
  */
731
- set_property(property_name: string | null, value: any): void
725
+ set_property(property_name: string, value: any): void
732
726
  /**
733
727
  * Calls the [vfunc`Json`.Serializable.get_property] implementation
734
728
  * on the `JsonSerializable` instance, which will get the value of
@@ -830,7 +824,7 @@ export class Photo extends Node {
830
824
  * @param id a const #gchar with the photo ID.
831
825
  * @returns a new #GFBGraphPhoto; unref with g_object_unref()
832
826
  */
833
- static new_from_id(authorizer: Authorizer, id: string | null): Photo
827
+ static new_from_id(authorizer: Authorizer, id: string): Photo
834
828
 
835
829
  // Overloads of new_from_id
836
830
 
@@ -842,7 +836,7 @@ export class Photo extends Node {
842
836
  * @param node_type a #GFBGraphNode type #GType.
843
837
  * @returns a #GFBGraphNode or %NULL.
844
838
  */
845
- static new_from_id(authorizer: Authorizer, id: string | null, node_type: GObject.GType): Node
839
+ static new_from_id(authorizer: Authorizer, id: string, node_type: GObject.GType): Node
846
840
  _init(config?: Photo.ConstructorProperties): void
847
841
  }
848
842
 
@@ -854,7 +848,6 @@ export module SimpleAuthorizer {
854
848
 
855
849
  // Own constructor properties of GFBGraph-0.2.GFBGraph.SimpleAuthorizer
856
850
 
857
- access_token?: string | null
858
851
  accessToken?: string | null
859
852
  }
860
853
 
@@ -864,7 +857,6 @@ export interface SimpleAuthorizer extends Authorizer {
864
857
 
865
858
  // Own properties of GFBGraph-0.2.GFBGraph.SimpleAuthorizer
866
859
 
867
- access_token: string | null
868
860
  accessToken: string | null
869
861
 
870
862
  // Own fields of GFBGraph-0.2.GFBGraph.SimpleAuthorizer
@@ -899,7 +891,7 @@ export class SimpleAuthorizer extends GObject.Object {
899
891
  * @param access_token a const `gchar`.
900
892
  * @returns a #GFBGraphSimpleAuthorizer.
901
893
  */
902
- constructor(access_token: string | null)
894
+ constructor(access_token: string)
903
895
  /**
904
896
  * Creates a new #GFBGraphAuthorizer to use with the GFBGraph library using the `access_token` as access token.
905
897
  * It's only a test authorizer, don't use in final code.
@@ -907,7 +899,7 @@ export class SimpleAuthorizer extends GObject.Object {
907
899
  * @param access_token a const `gchar`.
908
900
  * @returns a #GFBGraphSimpleAuthorizer.
909
901
  */
910
- static new(access_token: string | null): SimpleAuthorizer
902
+ static new(access_token: string): SimpleAuthorizer
911
903
  _init(config?: SimpleAuthorizer.ConstructorProperties): void
912
904
  }
913
905
 
@@ -979,12 +971,12 @@ export interface User {
979
971
  * permission.
980
972
  * @returns a const #gchar with the user email, or %NULL.
981
973
  */
982
- get_email(): string | null
974
+ get_email(): string
983
975
  /**
984
976
  * Get the user full name.
985
977
  * @returns a const #gchar with the user full name, or %NULL.
986
978
  */
987
- get_name(): string | null
979
+ get_name(): string
988
980
 
989
981
  // Class property signals of GFBGraph-0.2.GFBGraph.User
990
982
 
@@ -1050,7 +1042,7 @@ export class User extends Node {
1050
1042
  * @param id a const #gchar with the user ID.
1051
1043
  * @returns a new #GFBGraphUser; unref with g_object_unref()
1052
1044
  */
1053
- static new_from_id(authorizer: Authorizer, id: string | null): User
1045
+ static new_from_id(authorizer: Authorizer, id: string): User
1054
1046
 
1055
1047
  // Overloads of new_from_id
1056
1048
 
@@ -1062,7 +1054,7 @@ export class User extends Node {
1062
1054
  * @param node_type a #GFBGraphNode type #GType.
1063
1055
  * @returns a #GFBGraphNode or %NULL.
1064
1056
  */
1065
- static new_from_id(authorizer: Authorizer, id: string | null, node_type: GObject.GType): Node
1057
+ static new_from_id(authorizer: Authorizer, id: string, node_type: GObject.GType): Node
1066
1058
  _init(config?: User.ConstructorProperties): void
1067
1059
  /**
1068
1060
  * Retrieve the current user logged using the https://graph.facebook.com/me Graph API function.
@@ -1148,7 +1140,7 @@ export interface ConnectableInterface {
1148
1140
  parent: GObject.TypeInterface
1149
1141
  connections: GLib.HashTable
1150
1142
  get_connection_post_params: (self: Connectable, node_type: GObject.GType) => GLib.HashTable
1151
- parse_connected_data: (self: Connectable, payload: string | null) => Node[]
1143
+ parse_connected_data: (self: Connectable, payload: string) => Node[]
1152
1144
  }
1153
1145
 
1154
1146
  export abstract class ConnectableInterface {
package/gfbgraph-0.2.d.ts CHANGED
@@ -144,14 +144,14 @@ interface Connectable extends Node {
144
144
  * @param payload a const #gchar with the response string from the Facebook Graph API.
145
145
  * @returns a newly-allocated #GList of #GFBGraphNode with the same #GType as @self.
146
146
  */
147
- default_parse_connected_data(payload: string | null): Node[]
147
+ default_parse_connected_data(payload: string): Node[]
148
148
  /**
149
149
  * Get the Facebook Graph API function path to retrieve the nodes connected with `node_type`
150
150
  * managed by the #GFBGraphConnectable object.
151
151
  * @param node_type a #GType, required a #GFBGRAPH_TYPE_NODE or children.
152
152
  * @returns a const #gchar with the function path or %NULL.
153
153
  */
154
- get_connection_path(node_type: GObject.GType): string | null
154
+ get_connection_path(node_type: GObject.GType): string
155
155
  /**
156
156
  * Get the params to be inserted in a request to the Facebook Graph API
157
157
  * in order to append the node `self` to a node of type `node_type`.
@@ -172,7 +172,7 @@ interface Connectable extends Node {
172
172
  * @param payload a const #gchar with the response string from the Facebook Graph API.
173
173
  * @returns a newly-allocated #GList of #GFBGraphNode created from the @payload or %NULL.
174
174
  */
175
- parse_connected_data(payload: string | null): Node[]
175
+ parse_connected_data(payload: string): Node[]
176
176
 
177
177
  // Own virtual methods of GFBGraph-0.2.GFBGraph.Connectable
178
178
 
@@ -191,7 +191,7 @@ interface Connectable extends Node {
191
191
  * @param payload a const #gchar with the response string from the Facebook Graph API.
192
192
  * @returns a newly-allocated #GList of #GFBGraphNode created from the @payload or %NULL.
193
193
  */
194
- vfunc_parse_connected_data(payload: string | null): Node[]
194
+ vfunc_parse_connected_data(payload: string): Node[]
195
195
 
196
196
  // Class property signals of GFBGraph-0.2.GFBGraph.Connectable
197
197
 
@@ -238,7 +238,7 @@ module Album {
238
238
  * The number of photos in the album.
239
239
  */
240
240
  count?: number | null
241
- cover_photo?: string | null
241
+ coverPhoto?: string | null
242
242
  /**
243
243
  * The album description given by the owner.
244
244
  */
@@ -247,7 +247,6 @@ module Album {
247
247
  * The album name.
248
248
  */
249
249
  name?: string | null
250
- coverPhoto?: string | null
251
250
  }
252
251
 
253
252
  }
@@ -260,7 +259,6 @@ interface Album extends Connectable {
260
259
  * The number of photos in the album.
261
260
  */
262
261
  count: number
263
- cover_photo: string | null
264
262
  coverPhoto: string | null
265
263
  /**
266
264
  * The album description given by the owner.
@@ -278,19 +276,19 @@ interface Album extends Connectable {
278
276
  // Owm methods of GFBGraph-0.2.GFBGraph.Album
279
277
 
280
278
  get_count(): number
281
- get_cover_photo_id(): string | null
282
- get_description(): string | null
283
- get_name(): string | null
279
+ get_cover_photo_id(): string
280
+ get_description(): string
281
+ get_name(): string
284
282
  /**
285
283
  * Sets the description for the `album`.
286
284
  * @param description a const pointer to a #gchar.
287
285
  */
288
- set_description(description: string | null): void
286
+ set_description(description: string): void
289
287
  /**
290
288
  * Sets the name for the `album`.
291
289
  * @param name a const pointer to a #gchar.
292
290
  */
293
- set_name(name: string | null): void
291
+ set_name(name: string): void
294
292
 
295
293
  // Class property signals of GFBGraph-0.2.GFBGraph.Album
296
294
 
@@ -362,7 +360,7 @@ class Album extends Node {
362
360
  * @param id a const #gchar with the album ID.
363
361
  * @returns a new #GFBGraphAlbum; unref with g_object_unref()
364
362
  */
365
- static new_from_id(authorizer: Authorizer, id: string | null): Album
363
+ static new_from_id(authorizer: Authorizer, id: string): Album
366
364
 
367
365
  // Overloads of new_from_id
368
366
 
@@ -374,7 +372,7 @@ class Album extends Node {
374
372
  * @param node_type a #GFBGraphNode type #GType.
375
373
  * @returns a #GFBGraphNode or %NULL.
376
374
  */
377
- static new_from_id(authorizer: Authorizer, id: string | null, node_type: GObject.GType): Node
375
+ static new_from_id(authorizer: Authorizer, id: string, node_type: GObject.GType): Node
378
376
  _init(config?: Album.ConstructorProperties): void
379
377
  }
380
378
 
@@ -422,7 +420,7 @@ module Node {
422
420
 
423
421
  // Own constructor properties of GFBGraph-0.2.GFBGraph.Node
424
422
 
425
- created_time?: string | null
423
+ createdTime?: string | null
426
424
  /**
427
425
  * The node ID. All nodes have one of this.
428
426
  */
@@ -431,8 +429,6 @@ module Node {
431
429
  * The node link. An URL to the node on Facebook.
432
430
  */
433
431
  link?: string | null
434
- updated_time?: string | null
435
- createdTime?: string | null
436
432
  updatedTime?: string | null
437
433
  }
438
434
 
@@ -442,7 +438,6 @@ interface Node {
442
438
 
443
439
  // Own properties of GFBGraph-0.2.GFBGraph.Node
444
440
 
445
- created_time: string | null
446
441
  createdTime: string | null
447
442
  /**
448
443
  * The node ID. All nodes have one of this.
@@ -452,7 +447,6 @@ interface Node {
452
447
  * The node link. An URL to the node on Facebook.
453
448
  */
454
449
  link: string | null
455
- updated_time: string | null
456
450
  updatedTime: string | null
457
451
 
458
452
  // Own fields of GFBGraph-0.2.GFBGraph.Node
@@ -501,24 +495,24 @@ interface Node {
501
495
  * Gets a node created time.
502
496
  * @returns an ISO 8601 encoded date when the node was initially published.
503
497
  */
504
- get_created_time(): string | null
498
+ get_created_time(): string
505
499
  /**
506
500
  * Gets the Facebook Graph unique node ID.
507
501
  * @returns the node ID.
508
502
  */
509
- get_id(): string | null
510
- get_link(): string | null
503
+ get_id(): string
504
+ get_link(): string
511
505
  /**
512
506
  * Gets a node updated time.
513
507
  * @returns an ISO 8601 encoded date when the node was updated.
514
508
  */
515
- get_updated_time(): string | null
509
+ get_updated_time(): string
516
510
  /**
517
511
  * Sets the ID for a node. Just useful when a new node is created
518
512
  * and the Graph API returns the ID of the new created node.
519
513
  * @param id a const pointer to a #gchar.
520
514
  */
521
- set_id(id: string | null): void
515
+ set_id(id: string): void
522
516
 
523
517
  // Class property signals of GFBGraph-0.2.GFBGraph.Node
524
518
 
@@ -570,7 +564,7 @@ class Node extends GObject.Object {
570
564
  * @param node_type a #GFBGraphNode type #GType.
571
565
  * @returns a #GFBGraphNode or %NULL.
572
566
  */
573
- static new_from_id(authorizer: Authorizer, id: string | null, node_type: GObject.GType): Node
567
+ static new_from_id(authorizer: Authorizer, id: string, node_type: GObject.GType): Node
574
568
  _init(config?: Node.ConstructorProperties): void
575
569
  static error_quark(): GLib.Quark
576
570
  }
@@ -646,13 +640,13 @@ interface Photo extends Connectable, Json.Serializable {
646
640
  */
647
641
  download_default_size(authorizer: Authorizer): Gio.InputStream
648
642
  get_default_height(): number
649
- get_default_source_uri(): string | null
643
+ get_default_source_uri(): string
650
644
  get_default_width(): number
651
645
  get_image_hires(): PhotoImage
652
646
  get_image_near_height(height: number): PhotoImage
653
647
  get_image_near_width(width: number): PhotoImage
654
648
  get_images(): PhotoImage[]
655
- get_name(): string | null
649
+ get_name(): string
656
650
 
657
651
  // Conflicting methods
658
652
 
@@ -686,7 +680,7 @@ interface Photo extends Connectable, Json.Serializable {
686
680
  * @param property_name the name of the property to get
687
681
  * @param value return location for the property value
688
682
  */
689
- get_property(property_name: string | null, value: any): void
683
+ get_property(property_name: string, value: any): void
690
684
  /**
691
685
  * Gets a property of an object.
692
686
  *
@@ -707,7 +701,7 @@ interface Photo extends Connectable, Json.Serializable {
707
701
  * @param property_name the name of the property to get
708
702
  * @param value return location for the property value
709
703
  */
710
- get_property(property_name: string | null, value: any): void
704
+ get_property(property_name: string, value: any): void
711
705
  /**
712
706
  * Calls the [vfunc`Json`.Serializable.set_property] implementation
713
707
  * on the `JsonSerializable` instance, which will set the property
@@ -724,13 +718,13 @@ interface Photo extends Connectable, Json.Serializable {
724
718
  * @param property_name the name of the property to set
725
719
  * @param value the value
726
720
  */
727
- set_property(property_name: string | null, value: any): void
721
+ set_property(property_name: string, value: any): void
728
722
  /**
729
723
  * Sets a property on an object.
730
724
  * @param property_name the name of the property to set
731
725
  * @param value the value
732
726
  */
733
- set_property(property_name: string | null, value: any): void
727
+ set_property(property_name: string, value: any): void
734
728
  /**
735
729
  * Calls the [vfunc`Json`.Serializable.get_property] implementation
736
730
  * on the `JsonSerializable` instance, which will get the value of
@@ -832,7 +826,7 @@ class Photo extends Node {
832
826
  * @param id a const #gchar with the photo ID.
833
827
  * @returns a new #GFBGraphPhoto; unref with g_object_unref()
834
828
  */
835
- static new_from_id(authorizer: Authorizer, id: string | null): Photo
829
+ static new_from_id(authorizer: Authorizer, id: string): Photo
836
830
 
837
831
  // Overloads of new_from_id
838
832
 
@@ -844,7 +838,7 @@ class Photo extends Node {
844
838
  * @param node_type a #GFBGraphNode type #GType.
845
839
  * @returns a #GFBGraphNode or %NULL.
846
840
  */
847
- static new_from_id(authorizer: Authorizer, id: string | null, node_type: GObject.GType): Node
841
+ static new_from_id(authorizer: Authorizer, id: string, node_type: GObject.GType): Node
848
842
  _init(config?: Photo.ConstructorProperties): void
849
843
  }
850
844
 
@@ -856,7 +850,6 @@ module SimpleAuthorizer {
856
850
 
857
851
  // Own constructor properties of GFBGraph-0.2.GFBGraph.SimpleAuthorizer
858
852
 
859
- access_token?: string | null
860
853
  accessToken?: string | null
861
854
  }
862
855
 
@@ -866,7 +859,6 @@ interface SimpleAuthorizer extends Authorizer {
866
859
 
867
860
  // Own properties of GFBGraph-0.2.GFBGraph.SimpleAuthorizer
868
861
 
869
- access_token: string | null
870
862
  accessToken: string | null
871
863
 
872
864
  // Own fields of GFBGraph-0.2.GFBGraph.SimpleAuthorizer
@@ -901,7 +893,7 @@ class SimpleAuthorizer extends GObject.Object {
901
893
  * @param access_token a const `gchar`.
902
894
  * @returns a #GFBGraphSimpleAuthorizer.
903
895
  */
904
- constructor(access_token: string | null)
896
+ constructor(access_token: string)
905
897
  /**
906
898
  * Creates a new #GFBGraphAuthorizer to use with the GFBGraph library using the `access_token` as access token.
907
899
  * It's only a test authorizer, don't use in final code.
@@ -909,7 +901,7 @@ class SimpleAuthorizer extends GObject.Object {
909
901
  * @param access_token a const `gchar`.
910
902
  * @returns a #GFBGraphSimpleAuthorizer.
911
903
  */
912
- static new(access_token: string | null): SimpleAuthorizer
904
+ static new(access_token: string): SimpleAuthorizer
913
905
  _init(config?: SimpleAuthorizer.ConstructorProperties): void
914
906
  }
915
907
 
@@ -981,12 +973,12 @@ interface User {
981
973
  * permission.
982
974
  * @returns a const #gchar with the user email, or %NULL.
983
975
  */
984
- get_email(): string | null
976
+ get_email(): string
985
977
  /**
986
978
  * Get the user full name.
987
979
  * @returns a const #gchar with the user full name, or %NULL.
988
980
  */
989
- get_name(): string | null
981
+ get_name(): string
990
982
 
991
983
  // Class property signals of GFBGraph-0.2.GFBGraph.User
992
984
 
@@ -1052,7 +1044,7 @@ class User extends Node {
1052
1044
  * @param id a const #gchar with the user ID.
1053
1045
  * @returns a new #GFBGraphUser; unref with g_object_unref()
1054
1046
  */
1055
- static new_from_id(authorizer: Authorizer, id: string | null): User
1047
+ static new_from_id(authorizer: Authorizer, id: string): User
1056
1048
 
1057
1049
  // Overloads of new_from_id
1058
1050
 
@@ -1064,7 +1056,7 @@ class User extends Node {
1064
1056
  * @param node_type a #GFBGraphNode type #GType.
1065
1057
  * @returns a #GFBGraphNode or %NULL.
1066
1058
  */
1067
- static new_from_id(authorizer: Authorizer, id: string | null, node_type: GObject.GType): Node
1059
+ static new_from_id(authorizer: Authorizer, id: string, node_type: GObject.GType): Node
1068
1060
  _init(config?: User.ConstructorProperties): void
1069
1061
  /**
1070
1062
  * Retrieve the current user logged using the https://graph.facebook.com/me Graph API function.
@@ -1150,7 +1142,7 @@ interface ConnectableInterface {
1150
1142
  parent: GObject.TypeInterface
1151
1143
  connections: GLib.HashTable
1152
1144
  get_connection_post_params: (self: Connectable, node_type: GObject.GType) => GLib.HashTable
1153
- parse_connected_data: (self: Connectable, payload: string | null) => Node[]
1145
+ parse_connected_data: (self: Connectable, payload: string) => Node[]
1154
1146
  }
1155
1147
 
1156
1148
  abstract class ConnectableInterface {
package/package.json CHANGED
@@ -1,13 +1,19 @@
1
1
  {
2
2
  "name": "@girs/gfbgraph-0.2",
3
- "version": "0.2.0-3.2.6",
3
+ "version": "0.2.0-3.2.8",
4
4
  "description": "GJS TypeScript type definitions for GFBGraph-0.2, generated from library version 0.2.0",
5
5
  "type": "module",
6
6
  "module": "gfbgraph-0.2.js",
7
7
  "main": "gfbgraph-0.2.js",
8
8
  "exports": {
9
- "./ambient": "./gfbgraph-0.2-ambient.d.ts",
10
- "./import": "./gfbgraph-0.2-import.d.ts",
9
+ "./ambient": {
10
+ "types": "./gfbgraph-0.2-ambient.d.ts",
11
+ "default": "./gfbgraph-0.2-ambient.js"
12
+ },
13
+ "./import": {
14
+ "types": "./gfbgraph-0.2-import.d.ts",
15
+ "default": "./gfbgraph-0.2-import.js"
16
+ },
11
17
  ".": {
12
18
  "import": {
13
19
  "types": "./gfbgraph-0.2.d.ts",
@@ -25,13 +31,13 @@
25
31
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gfbgraph-0.2.d.cts"
26
32
  },
27
33
  "dependencies": {
28
- "@girs/gio-2.0": "^2.78.0-3.2.6",
29
- "@girs/gjs": "^3.2.6",
30
- "@girs/glib-2.0": "^2.78.0-3.2.6",
31
- "@girs/gobject-2.0": "^2.78.0-3.2.6",
32
- "@girs/json-1.0": "^1.7.1-3.2.6",
33
- "@girs/rest-0.7": "^0.7.0-3.2.6",
34
- "@girs/soup-2.4": "^2.74.3-3.2.6"
34
+ "@girs/gio-2.0": "^2.77.0-3.2.8",
35
+ "@girs/gjs": "^3.2.8",
36
+ "@girs/glib-2.0": "^2.77.0-3.2.8",
37
+ "@girs/gobject-2.0": "^2.77.0-3.2.8",
38
+ "@girs/json-1.0": "^1.7.1-3.2.8",
39
+ "@girs/rest-0.7": "^0.7.0-3.2.8",
40
+ "@girs/soup-2.4": "^2.74.3-3.2.8"
35
41
  },
36
42
  "devDependencies": {
37
43
  "typescript": "*"
@@ -48,7 +54,7 @@
48
54
  "license": "MIT",
49
55
  "repository": {
50
56
  "type": "git",
51
- "url": "git+https://github.com/gjsify/types.git"
57
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
52
58
  },
53
59
  "bugs": {
54
60
  "url": "https://github.com/gjsify/ts-for-gir/issues"