@girs/appstreamcompose-1.0 1.0.0-4.0.0-beta.40 → 1.0.0-4.0.0-beta.41

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/appstreamcompose-1.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for AppStreamCompose-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.40.
8
+ GJS TypeScript type definitions for AppStreamCompose-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.41.
9
9
 
10
10
  ## Install
11
11
 
@@ -14,7 +14,6 @@ import type Gio from '@girs/gio-2.0';
14
14
  import type GObject from '@girs/gobject-2.0';
15
15
  import type GLib from '@girs/glib-2.0';
16
16
  import type GModule from '@girs/gmodule-2.0';
17
- import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
18
17
  import type AppStream from '@girs/appstream-1.0';
19
18
 
20
19
  export namespace AppStreamCompose {
@@ -22,42 +21,9 @@ export namespace AppStreamCompose {
22
21
  * AppStreamCompose-1.0
23
22
  */
24
23
 
25
- /**
26
- * A drawing error.
27
- */
28
- class CanvasError extends GLib.Error {
29
- static $gtype: GObject.GType<GLib.Error>;
30
-
31
- // Static fields
32
-
33
- /**
34
- * Generic failure.
35
- */
36
- static FAILED: number;
37
- /**
38
- * Drawing operation failed.
39
- */
40
- static DRAWING: number;
41
- /**
42
- * Issue with font or font selection.
43
- */
44
- static FONT: number;
45
- /**
46
- * The requested action was not supported.
47
- */
48
- static UNSUPPORTED: number;
49
-
50
- // Constructors
51
-
52
- constructor(options: { message: string; code: number });
53
-
54
- // Static methods
55
-
56
- static quark(): GLib.Quark;
57
- }
58
-
59
24
  /**
60
25
  * A metadata composition error.
26
+ * @gir-type Struct
61
27
  */
62
28
  class ComposeError extends GLib.Error {
63
29
  static $gtype: GObject.GType<GLib.Error>;
@@ -78,12 +44,16 @@ export namespace AppStreamCompose {
78
44
  static quark(): GLib.Quark;
79
45
  }
80
46
 
47
+ /**
48
+ * @gir-type Enum
49
+ */
81
50
  export namespace IconState {
82
51
  export const $gtype: GObject.GType<IconState>;
83
52
  }
84
53
 
85
54
  /**
86
55
  * Designated state for an icon of a given size.
56
+ * @gir-type Enum
87
57
  */
88
58
  enum IconState {
89
59
  /**
@@ -106,6 +76,7 @@ export namespace AppStreamCompose {
106
76
 
107
77
  /**
108
78
  * An image processing error.
79
+ * @gir-type Struct
109
80
  */
110
81
  class ImageError extends GLib.Error {
111
82
  static $gtype: GObject.GType<GLib.Error>;
@@ -130,12 +101,16 @@ export namespace AppStreamCompose {
130
101
  static quark(): GLib.Quark;
131
102
  }
132
103
 
104
+ /**
105
+ * @gir-type Enum
106
+ */
133
107
  export namespace ImageFormat {
134
108
  export const $gtype: GObject.GType<ImageFormat>;
135
109
  }
136
110
 
137
111
  /**
138
112
  * File format of an image.
113
+ * @gir-type Enum
139
114
  */
140
115
  enum ImageFormat {
141
116
  /**
@@ -147,13 +122,17 @@ export namespace AppStreamCompose {
147
122
  */
148
123
  PNG,
149
124
  /**
150
- * JPEG format
125
+ * JPEG-XL format
151
126
  */
152
- JPEG,
127
+ JXL,
153
128
  /**
154
- * GIF format
129
+ * AVIF format
155
130
  */
156
- GIF,
131
+ AVIF,
132
+ /**
133
+ * WebP format
134
+ */
135
+ WEBP,
157
136
  /**
158
137
  * SVG format
159
138
  */
@@ -163,13 +142,13 @@ export namespace AppStreamCompose {
163
142
  */
164
143
  SVGZ,
165
144
  /**
166
- * WebP format
145
+ * JPEG format
167
146
  */
168
- WEBP,
147
+ JPEG,
169
148
  /**
170
- * AVIF format
149
+ * GIF format
171
150
  */
172
- AVIF,
151
+ GIF,
173
152
  /**
174
153
  * XPM format
175
154
  */
@@ -188,7 +167,9 @@ export namespace AppStreamCompose {
188
167
  * @param checksum a MD5 hashsum as string generated from the component's combined metadata.
189
168
  */
190
169
  function build_component_global_id(component_id: string, checksum: string): string;
191
- function canvas_error_quark(): GLib.Quark;
170
+ /**
171
+ * @returns An error quark.
172
+ */
192
173
  function compose_error_quark(): GLib.Quark;
193
174
  /**
194
175
  * Generate a filename from a web-URL that can be used to store the
@@ -199,14 +180,14 @@ export namespace AppStreamCompose {
199
180
  /**
200
181
  * Register a new hint tag. If a previous tag with the given name
201
182
  * already existed, the existing tag will not be replaced unless
202
- * `overrideExisting` is set to %TRUE.
183
+ * `overrideExisting` is set to `true`.
203
184
  * Please be careful when overriding tags! Tag severities can not
204
185
  * be lowered by overriding a tag.
205
186
  * @param tag the tag-ID to add
206
- * @param severity the tag severity as #AsIssueSeverity
187
+ * @param severity the tag severity as {@link AppStream.IssueSeverity}
207
188
  * @param explanation the tag explanatory message
208
189
  * @param overrideExisting whether an existing tag should be replaced
209
- * @returns %TRUE if the tag was registered and did not exist previously.
190
+ * @returns `true` if the tag was registered and did not exist previously.
210
191
  */
211
192
  function globals_add_hint_tag(
212
193
  tag: string,
@@ -247,13 +228,13 @@ export namespace AppStreamCompose {
247
228
  /**
248
229
  * Retrieve the explanation template of the given hint tag.
249
230
  * @param tag
250
- * @returns An explanation template, or %NULL if the tag was not found.
231
+ * @returns An explanation template, or `null` if the tag was not found.
251
232
  */
252
233
  function globals_hint_tag_explanation(tag: string): string;
253
234
  /**
254
235
  * Retrieve the severity of the given hint tag.
255
236
  * @param tag
256
- * @returns An #AsIssueSeverity or %AS_ISSUE_SEVERITY_UNKNOWN if the tag did not exist or has an unknown severity.
237
+ * @returns An {@link AppStream.IssueSeverity} or {@link AppStream.IssueSeverity.UNKNOWN} if the tag did not exist or has an unknown severity.
257
238
  */
258
239
  function globals_hint_tag_severity(tag: string): AppStream.IssueSeverity;
259
240
  /**
@@ -279,49 +260,69 @@ export namespace AppStreamCompose {
279
260
  /**
280
261
  * Converts the text representation to an enumerated value.
281
262
  * @param state_str the string.
282
- * @returns a #AscIconState
263
+ * @returns a {@link AppStreamCompose.IconState}
283
264
  */
284
265
  function icon_state_from_string(state_str: string): IconState;
285
266
  /**
286
267
  * Converts the enumerated value to an text representation.
287
- * @param istate the #AscIconState.
288
- * @returns string version of @istate
268
+ * @param istate the {@link AppStreamCompose.IconState}.
269
+ * @returns string version of `istate`
289
270
  */
290
271
  function icon_state_to_string(istate: IconState | null): string;
272
+ /**
273
+ * @returns An error quark.
274
+ */
291
275
  function image_error_quark(): GLib.Quark;
292
276
  /**
293
277
  * Returns the image format type based on the given file's filename.
294
278
  * @param fname the filename.
295
- * @returns a #AscImageFormat or %ASC_IMAGE_FORMAT_UNKNOWN for unknown
279
+ * @returns a {@link AppStreamCompose.ImageFormat} or {@link AppStreamCompose.ImageFormat.UNKNOWN} for unknown
296
280
  */
297
281
  function image_format_from_filename(fname: string): ImageFormat;
298
282
  /**
299
283
  * Converts the text representation to an enumerated value.
300
284
  * @param str the string.
301
- * @returns a #AscImageFormat or %ASC_IMAGE_FORMAT_UNKNOWN for unknown
285
+ * @returns a {@link AppStreamCompose.ImageFormat} or {@link AppStreamCompose.ImageFormat.UNKNOWN} for unknown
302
286
  */
303
287
  function image_format_from_string(str: string): ImageFormat;
304
288
  /**
305
289
  * Converts the enumerated value to an text representation.
306
290
  * @param format the %AscImageFormat.
307
- * @returns string version of @format
291
+ * @returns string version of `format`
308
292
  */
309
293
  function image_format_to_string(format: ImageFormat | null): string;
310
294
  /**
311
- * Optimizes a PNG graphic for size with optipng, if its binary
312
- * is available and this feature is enabled.
313
- * @param fname Filename of the PNG image to optimize.
295
+ * Renders SVG data from a stream to a file in a specific format.
296
+ * @param stream Input stream with SVG data.
297
+ * @param width Target width.
298
+ * @param height Target height.
299
+ * @param format Target image format, e.g. {@link AppStreamCompose.ImageFormat.PNG}
300
+ * @param filename Filename to write to.
301
+ * @returns `true` for success
302
+ */
303
+ function render_svg_to_file(
304
+ stream: Gio.InputStream,
305
+ width: number,
306
+ height: number,
307
+ format: ImageFormat | null,
308
+ filename: string,
309
+ ): boolean;
310
+ /**
311
+ * @gir-type Callback
314
312
  */
315
- function optimize_png(fname: string): boolean;
316
- function pixbuf_blur(src: GdkPixbuf.Pixbuf, radius: number, iterations: number): void;
317
- function pixbuf_sharpen(src: GdkPixbuf.Pixbuf, radius: number, amount: number): void;
318
313
  interface CheckMetadataEarlyFn {
319
314
  (cres: Result, unit: Unit): void;
320
315
  }
316
+ /**
317
+ * @gir-type Flags
318
+ */
321
319
  export namespace ComposeFlags {
322
320
  export const $gtype: GObject.GType<ComposeFlags>;
323
321
  }
324
322
 
323
+ /**
324
+ * @gir-type Flags
325
+ */
325
326
  enum ComposeFlags {
326
327
  NONE,
327
328
  USE_THREADS,
@@ -339,12 +340,16 @@ export namespace AppStreamCompose {
339
340
  NO_PARTIAL_URLS,
340
341
  }
341
342
 
343
+ /**
344
+ * @gir-type Flags
345
+ */
342
346
  export namespace ImageLoadFlags {
343
347
  export const $gtype: GObject.GType<ImageLoadFlags>;
344
348
  }
345
349
 
346
350
  /**
347
351
  * The flags used for loading images.
352
+ * @gir-type Flags
348
353
  */
349
354
  enum ImageLoadFlags {
350
355
  /**
@@ -365,12 +370,16 @@ export namespace AppStreamCompose {
365
370
  ALWAYS_RESIZE,
366
371
  }
367
372
 
373
+ /**
374
+ * @gir-type Flags
375
+ */
368
376
  export namespace ImageSaveFlags {
369
377
  export const $gtype: GObject.GType<ImageSaveFlags>;
370
378
  }
371
379
 
372
380
  /**
373
381
  * The flags used for saving images.
382
+ * @gir-type Flags
374
383
  */
375
384
  enum ImageSaveFlags {
376
385
  /**
@@ -395,75 +404,6 @@ export namespace AppStreamCompose {
395
404
  BLUR,
396
405
  }
397
406
 
398
- namespace Canvas {
399
- // Signal signatures
400
- interface SignalSignatures extends GObject.Object.SignalSignatures {}
401
-
402
- // Constructor properties interface
403
-
404
- interface ConstructorProps extends GObject.Object.ConstructorProps {}
405
- }
406
-
407
- class Canvas extends GObject.Object {
408
- static $gtype: GObject.GType<Canvas>;
409
-
410
- /**
411
- * Compile-time signal type information.
412
- *
413
- * This instance property is generated only for TypeScript type checking.
414
- * It is not defined at runtime and should not be accessed in JS code.
415
- * @internal
416
- */
417
- $signals: Canvas.SignalSignatures;
418
-
419
- // Constructors
420
-
421
- constructor(properties?: Partial<Canvas.ConstructorProps>, ...args: any[]);
422
-
423
- _init(...args: any[]): void;
424
-
425
- static ['new'](width: number, height: number): Canvas;
426
-
427
- // Signals
428
-
429
- connect<K extends keyof Canvas.SignalSignatures>(
430
- signal: K,
431
- callback: GObject.SignalCallback<this, Canvas.SignalSignatures[K]>,
432
- ): number;
433
- connect(signal: string, callback: (...args: any[]) => any): number;
434
- connect_after<K extends keyof Canvas.SignalSignatures>(
435
- signal: K,
436
- callback: GObject.SignalCallback<this, Canvas.SignalSignatures[K]>,
437
- ): number;
438
- connect_after(signal: string, callback: (...args: any[]) => any): number;
439
- emit<K extends keyof Canvas.SignalSignatures>(
440
- signal: K,
441
- ...args: GObject.GjsParameters<Canvas.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
442
- ): void;
443
- emit(signal: string, ...args: any[]): void;
444
-
445
- // Methods
446
-
447
- /**
448
- * Gets the canvas height.
449
- */
450
- get_height(): number;
451
- /**
452
- * Gets the canvas width.
453
- */
454
- get_width(): number;
455
- /**
456
- * Render an SVG graphic from the SVG data provided.
457
- * @param stream SVG data input stream.
458
- */
459
- render_svg(stream: Gio.InputStream): boolean;
460
- /**
461
- * Save canvas to PNG file.
462
- * @param fname Filename to save to.
463
- */
464
- save_png(fname: string): boolean;
465
- }
466
-
467
407
  namespace Compose {
468
408
  // Signal signatures
469
409
  interface SignalSignatures extends GObject.Object.SignalSignatures {}
@@ -473,6 +413,9 @@ export namespace AppStreamCompose {
473
413
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
474
414
  }
475
415
 
416
+ /**
417
+ * @gir-type Class
418
+ */
476
419
  class Compose extends GObject.Object {
477
420
  static $gtype: GObject.GType<Compose>;
478
421
 
@@ -495,16 +438,19 @@ export namespace AppStreamCompose {
495
438
 
496
439
  // Signals
497
440
 
441
+ /** @signal */
498
442
  connect<K extends keyof Compose.SignalSignatures>(
499
443
  signal: K,
500
444
  callback: GObject.SignalCallback<this, Compose.SignalSignatures[K]>,
501
445
  ): number;
502
446
  connect(signal: string, callback: (...args: any[]) => any): number;
447
+ /** @signal */
503
448
  connect_after<K extends keyof Compose.SignalSignatures>(
504
449
  signal: K,
505
450
  callback: GObject.SignalCallback<this, Compose.SignalSignatures[K]>,
506
451
  ): number;
507
452
  connect_after(signal: string, callback: (...args: any[]) => any): number;
453
+ /** @signal */
508
454
  emit<K extends keyof Compose.SignalSignatures>(
509
455
  signal: K,
510
456
  ...args: GObject.GjsParameters<Compose.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
@@ -530,8 +476,8 @@ export namespace AppStreamCompose {
530
476
  */
531
477
  add_flags(flags: ComposeFlags | null): void;
532
478
  /**
533
- * Add an #AscUnit as data source for metadata processing.
534
- * @param unit The #AscUnit to add
479
+ * Add an {@link AppStreamCompose.Unit} as data source for metadata processing.
480
+ * @param unit The {@link AppStreamCompose.Unit} to add
535
481
  */
536
482
  add_unit(unit: Unit): void;
537
483
  /**
@@ -542,17 +488,17 @@ export namespace AppStreamCompose {
542
488
  /**
543
489
  * Perform final validation of generated data for the specified
544
490
  * result container.
545
- * @param result the #AscResult to finalize
491
+ * @param result the {@link AppStreamCompose.Result} to finalize
546
492
  */
547
493
  finalize_result(result: Result): void;
548
494
  /**
549
495
  * Perform final validation of generated data.
550
496
  * Calling this function is not necessary, unless the final check was explicitly
551
- * disabled using the %ASC_COMPOSE_FLAG_NO_FINAL_CHECK flag.
497
+ * disabled using the {@link AppStreamCompose.ComposeFlags.NO_FINAL_CHECK} flag.
552
498
  */
553
499
  finalize_results(): void;
554
500
  /**
555
- * Get the CA file used to verify peers with, or %NULL for default.
501
+ * Get the CA file used to verify peers with, or `null` for default.
556
502
  */
557
503
  get_cainfo(): string;
558
504
  /**
@@ -574,7 +520,7 @@ export namespace AppStreamCompose {
574
520
  /**
575
521
  * Get the policy for how icons should be distributed to
576
522
  * any AppStream clients.
577
- * @returns an #AscIconPolicy
523
+ * @returns an {@link AppStreamCompose.IconPolicy}
578
524
  */
579
525
  get_icon_policy(): IconPolicy;
580
526
  /**
@@ -583,7 +529,7 @@ export namespace AppStreamCompose {
583
529
  get_icons_result_dir(): string;
584
530
  /**
585
531
  * Get the unit we use for locale processing
586
- * @returns The unit used for locale processing, or %NULL for default.
532
+ * @returns The unit used for locale processing, or `null` for default.
587
533
  */
588
534
  get_locale_unit(): Unit | null;
589
535
  /**
@@ -594,7 +540,7 @@ export namespace AppStreamCompose {
594
540
  get_max_screenshot_size(): number;
595
541
  /**
596
542
  * Get the media base URL to be used for the generated data,
597
- * or %NULL if no media is cached.
543
+ * or `null` if no media is cached.
598
544
  */
599
545
  get_media_baseurl(): string;
600
546
  /**
@@ -616,7 +562,7 @@ export namespace AppStreamCompose {
616
562
  get_results(): Result[];
617
563
  /**
618
564
  * Check if the last run generated any errors (which will cause metadata to be ignored).
619
- * @returns %TRUE if we had errors.
565
+ * @returns `true` if we had errors.
620
566
  */
621
567
  has_errors(): boolean;
622
568
  /**
@@ -637,13 +583,13 @@ export namespace AppStreamCompose {
637
583
  /**
638
584
  * Process the registered units and generate catalog metadata from
639
585
  * found components.
640
- * @param cancellable a #GCancellable.
641
- * @returns The results, or %NULL on error
586
+ * @param cancellable a {@link Gio.Cancellable}.
587
+ * @returns The results, or `null` on error
642
588
  */
643
589
  run(cancellable?: Gio.Cancellable | null): Result[];
644
590
  /**
645
591
  * Set a CA file holding one or more certificates to verify peers with
646
- * for download operations performed by this #AscCompose.
592
+ * for download operations performed by this {@link AppStreamCompose.Compose}.
647
593
  * @param cainfo a valid file path
648
594
  */
649
595
  set_cainfo(cainfo: string): void;
@@ -653,24 +599,24 @@ export namespace AppStreamCompose {
653
599
  * This can be used to ignore unwanted components early on.
654
600
  *
655
601
  * The callback function may be called from any thread, so it needs to ensure thread safety on its own.
656
- * @param func the #AscCheckMetainfoLoadResultFn function to be called
602
+ * @param func the `AscCheckMetainfoLoadResultFn` function to be called
657
603
  */
658
604
  set_check_metadata_early_func(func: CheckMetadataEarlyFn): void;
659
605
  /**
660
606
  * Set an output location where generated metadata should be saved.
661
- * If this is set to %NULL, no metadata will be saved.
607
+ * If this is set to `null`, no metadata will be saved.
662
608
  * @param dir the metadata save location.
663
609
  */
664
610
  set_data_result_dir(dir: string): void;
665
611
  /**
666
612
  * Set compose flags bitfield that controls the enabled features
667
- * for this #AscCompose.
613
+ * for this {@link AppStreamCompose.Compose}.
668
614
  * @param flags The compose flags bitfield.
669
615
  */
670
616
  set_flags(flags: ComposeFlags | null): void;
671
617
  /**
672
618
  * Set the format kind of the catalog metadata that we should generate.
673
- * @param kind The format, e.g. %AS_FORMAT_KIND_XML
619
+ * @param kind The format, e.g. {@link AppStream.FormatKind.XML}
674
620
  */
675
621
  set_format(kind: AppStream.FormatKind | null): void;
676
622
  /**
@@ -681,7 +627,7 @@ export namespace AppStreamCompose {
681
627
  set_hints_result_dir(dir: string): void;
682
628
  /**
683
629
  * Set an icon policy object, overriding the existing one.
684
- * @param policy an #AscIconPolicy instance
630
+ * @param policy an {@link AppStreamCompose.IconPolicy} instance
685
631
  */
686
632
  set_icon_policy(policy: IconPolicy): void;
687
633
  /**
@@ -706,7 +652,7 @@ export namespace AppStreamCompose {
706
652
  */
707
653
  set_max_screenshot_size(size_bytes: number): void;
708
654
  /**
709
- * Set the media base URL for the generated metadata. Can be %NULL if no media
655
+ * Set the media base URL for the generated metadata. Can be `null` if no media
710
656
  * should be cached and the original URLs should be kept.
711
657
  * @param url the media base URL.
712
658
  */
@@ -738,6 +684,9 @@ export namespace AppStreamCompose {
738
684
  interface ConstructorProps extends Unit.ConstructorProps {}
739
685
  }
740
686
 
687
+ /**
688
+ * @gir-type Class
689
+ */
741
690
  class DirectoryUnit extends Unit {
742
691
  static $gtype: GObject.GType<DirectoryUnit>;
743
692
 
@@ -763,16 +712,19 @@ export namespace AppStreamCompose {
763
712
 
764
713
  // Signals
765
714
 
715
+ /** @signal */
766
716
  connect<K extends keyof DirectoryUnit.SignalSignatures>(
767
717
  signal: K,
768
718
  callback: GObject.SignalCallback<this, DirectoryUnit.SignalSignatures[K]>,
769
719
  ): number;
770
720
  connect(signal: string, callback: (...args: any[]) => any): number;
721
+ /** @signal */
771
722
  connect_after<K extends keyof DirectoryUnit.SignalSignatures>(
772
723
  signal: K,
773
724
  callback: GObject.SignalCallback<this, DirectoryUnit.SignalSignatures[K]>,
774
725
  ): number;
775
726
  connect_after(signal: string, callback: (...args: any[]) => any): number;
727
+ /** @signal */
776
728
  emit<K extends keyof DirectoryUnit.SignalSignatures>(
777
729
  signal: K,
778
730
  ...args: GObject.GjsParameters<DirectoryUnit.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
@@ -801,6 +753,9 @@ export namespace AppStreamCompose {
801
753
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
802
754
  }
803
755
 
756
+ /**
757
+ * @gir-type Class
758
+ */
804
759
  class Hint extends GObject.Object {
805
760
  static $gtype: GObject.GType<Hint>;
806
761
 
@@ -825,16 +780,19 @@ export namespace AppStreamCompose {
825
780
 
826
781
  // Signals
827
782
 
783
+ /** @signal */
828
784
  connect<K extends keyof Hint.SignalSignatures>(
829
785
  signal: K,
830
786
  callback: GObject.SignalCallback<this, Hint.SignalSignatures[K]>,
831
787
  ): number;
832
788
  connect(signal: string, callback: (...args: any[]) => any): number;
789
+ /** @signal */
833
790
  connect_after<K extends keyof Hint.SignalSignatures>(
834
791
  signal: K,
835
792
  callback: GObject.SignalCallback<this, Hint.SignalSignatures[K]>,
836
793
  ): number;
837
794
  connect_after(signal: string, callback: (...args: any[]) => any): number;
795
+ /** @signal */
838
796
  emit<K extends keyof Hint.SignalSignatures>(
839
797
  signal: K,
840
798
  ...args: GObject.GjsParameters<Hint.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
@@ -862,7 +820,7 @@ export namespace AppStreamCompose {
862
820
  /**
863
821
  * Returns a list with the flattened key/value pairs for this hint.
864
822
  * Values are located in uneven list entries, following their keys in even list entries.
865
- * @returns A flattened #GPtrArray with the key/value pairs.
823
+ * @returns A flattened {@link GLib.PtrArray} with the key/value pairs.
866
824
  */
867
825
  get_explanation_vars_list(): string[];
868
826
  /**
@@ -873,11 +831,14 @@ export namespace AppStreamCompose {
873
831
  * Gets the unique tag for the type of this hint.
874
832
  */
875
833
  get_tag(): string;
834
+ /**
835
+ * @returns `true` if this hint describes an error.
836
+ */
876
837
  is_error(): boolean;
877
838
  /**
878
839
  * Check if this hint is valid (it requires at least a tag and a severity
879
840
  * in order to be considered valid).
880
- * @returns %TRUE if this hint is valid.
841
+ * @returns `true` if this hint is valid.
881
842
  */
882
843
  is_valid(): boolean;
883
844
  /**
@@ -906,6 +867,9 @@ export namespace AppStreamCompose {
906
867
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
907
868
  }
908
869
 
870
+ /**
871
+ * @gir-type Class
872
+ */
909
873
  class IconPolicy extends GObject.Object {
910
874
  static $gtype: GObject.GType<IconPolicy>;
911
875
 
@@ -928,16 +892,19 @@ export namespace AppStreamCompose {
928
892
 
929
893
  // Signals
930
894
 
895
+ /** @signal */
931
896
  connect<K extends keyof IconPolicy.SignalSignatures>(
932
897
  signal: K,
933
898
  callback: GObject.SignalCallback<this, IconPolicy.SignalSignatures[K]>,
934
899
  ): number;
935
900
  connect(signal: string, callback: (...args: any[]) => any): number;
901
+ /** @signal */
936
902
  connect_after<K extends keyof IconPolicy.SignalSignatures>(
937
903
  signal: K,
938
904
  callback: GObject.SignalCallback<this, IconPolicy.SignalSignatures[K]>,
939
905
  ): number;
940
906
  connect_after(signal: string, callback: (...args: any[]) => any): number;
907
+ /** @signal */
941
908
  emit<K extends keyof IconPolicy.SignalSignatures>(
942
909
  signal: K,
943
910
  ...args: GObject.GjsParameters<IconPolicy.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
@@ -955,12 +922,12 @@ export namespace AppStreamCompose {
955
922
  * Sets a designated state for an icon of the given size.
956
923
  * @param icon_size the size of the icon to set policy for (e.g. 64 for 64x64px icons)
957
924
  * @param icon_scale the icon scale factor, e.g. 1
958
- * @param state the designated #AscIconState
925
+ * @param state the designated {@link AppStreamCompose.IconState}
959
926
  */
960
927
  set_policy(icon_size: number, icon_scale: number, state: IconState | null): void;
961
928
  /**
962
929
  * Converts the current icon policy into a textual representation.
963
- * @returns The icon policy serialized into a string. Free with g_free()
930
+ * @returns The icon policy serialized into a string. Free with `g_free()`
964
931
  */
965
932
  to_string(): string;
966
933
  }
@@ -974,6 +941,9 @@ export namespace AppStreamCompose {
974
941
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
975
942
  }
976
943
 
944
+ /**
945
+ * @gir-type Class
946
+ */
977
947
  class Image extends GObject.Object {
978
948
  static $gtype: GObject.GType<Image>;
979
949
 
@@ -997,25 +967,29 @@ export namespace AppStreamCompose {
997
967
  static new_from_data(
998
968
  data: any | null,
999
969
  len: number,
1000
- dest_size: number,
1001
- compressed: boolean,
970
+ dest_width: number,
971
+ dest_height: number,
1002
972
  flags: ImageLoadFlags,
973
+ format_hint: ImageFormat,
1003
974
  ): Image;
1004
975
 
1005
- static new_from_file(fname: string, dest_size: number, flags: ImageLoadFlags): Image;
976
+ static new_from_file(fname: string, dest_width: number, dest_height: number, flags: ImageLoadFlags): Image;
1006
977
 
1007
978
  // Signals
1008
979
 
980
+ /** @signal */
1009
981
  connect<K extends keyof Image.SignalSignatures>(
1010
982
  signal: K,
1011
983
  callback: GObject.SignalCallback<this, Image.SignalSignatures[K]>,
1012
984
  ): number;
1013
985
  connect(signal: string, callback: (...args: any[]) => any): number;
986
+ /** @signal */
1014
987
  connect_after<K extends keyof Image.SignalSignatures>(
1015
988
  signal: K,
1016
989
  callback: GObject.SignalCallback<this, Image.SignalSignatures[K]>,
1017
990
  ): number;
1018
991
  connect_after(signal: string, callback: (...args: any[]) => any): number;
992
+ /** @signal */
1019
993
  emit<K extends keyof Image.SignalSignatures>(
1020
994
  signal: K,
1021
995
  ...args: GObject.GjsParameters<Image.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
@@ -1036,11 +1010,6 @@ export namespace AppStreamCompose {
1036
1010
  * Gets the image height.
1037
1011
  */
1038
1012
  get_height(): number;
1039
- /**
1040
- * Gets the image pixbuf if set.
1041
- * @returns the #GdkPixbuf, or %NULL
1042
- */
1043
- get_pixbuf(): GdkPixbuf.Pixbuf;
1044
1013
  /**
1045
1014
  * Gets the image width.
1046
1015
  */
@@ -1048,29 +1017,28 @@ export namespace AppStreamCompose {
1048
1017
  /**
1049
1018
  * Reads an image from a file.
1050
1019
  * @param filename filename to read from
1051
- * @param dest_size The size of the constructed pixbuf, or 0 for the native size
1052
- * @param src_size_min The smallest source size allowed, or 0 for none
1053
- * @param flags a #AscImageLoadFlags, e.g. %ASC_IMAGE_LOAD_FLAG_NONE
1054
- * @returns %TRUE for success
1055
- */
1056
- load_filename(filename: string, dest_size: number, src_size_min: number, flags: ImageLoadFlags | null): boolean;
1020
+ * @param dest_width The suggested width of the constructed pixbuf, or 0 for the native size
1021
+ * @param dest_height The suggested height of the constructed pixbuf, or 0 for the native size
1022
+ * @param src_size_min The smallest source size (width or height) allowed, or 0 for no limit
1023
+ * @param flags a {@link AppStreamCompose.ImageLoadFlags}, e.g. {@link AppStreamCompose.ImageLoadFlags.NONE}
1024
+ * @returns `true` for success
1025
+ */
1026
+ load_filename(
1027
+ filename: string,
1028
+ dest_width: number,
1029
+ dest_height: number,
1030
+ src_size_min: number,
1031
+ flags: ImageLoadFlags | null,
1032
+ ): boolean;
1057
1033
  /**
1058
1034
  * Saves the image to a file.
1059
1035
  * @param filename filename to write to
1060
1036
  * @param width target width, or 0 for default
1061
1037
  * @param height target height, or 0 for default
1062
- * @param flags some #AscImageSaveFlags values, e.g. %ASC_IMAGE_SAVE_FLAG_PAD_16_9
1063
- * @returns %TRUE for success
1038
+ * @param flags some {@link AppStreamCompose.ImageSaveFlags} values, e.g. {@link AppStreamCompose.ImageSaveFlags.PAD_16_9}
1039
+ * @returns `true` for success
1064
1040
  */
1065
1041
  save_filename(filename: string, width: number, height: number, flags: ImageSaveFlags | null): boolean;
1066
- /**
1067
- * Resamples a pixbuf to a specific size.
1068
- * @param width target width, or 0 for default
1069
- * @param height target height, or 0 for default
1070
- * @param flags some #AscImageSaveFlags values, e.g. %ASC_IMAGE_SAVE_FLAG_PAD_16_9
1071
- * @returns A #GdkPixbuf of the specified size
1072
- */
1073
- save_pixbuf(width: number, height: number, flags: ImageSaveFlags | null): GdkPixbuf.Pixbuf;
1074
1042
  /**
1075
1043
  * Scale the image to the given size.
1076
1044
  * @param new_width The new width.
@@ -1095,11 +1063,6 @@ export namespace AppStreamCompose {
1095
1063
  * @param new_width The new width.
1096
1064
  */
1097
1065
  scale_to_width(new_width: number): void;
1098
- /**
1099
- * Sets the image pixbuf.
1100
- * @param pixbuf the #GdkPixbuf, or %NULL
1101
- */
1102
- set_pixbuf(pixbuf: GdkPixbuf.Pixbuf): void;
1103
1066
  }
1104
1067
 
1105
1068
  namespace Result {
@@ -1111,6 +1074,9 @@ export namespace AppStreamCompose {
1111
1074
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
1112
1075
  }
1113
1076
 
1077
+ /**
1078
+ * @gir-type Class
1079
+ */
1114
1080
  class Result extends GObject.Object {
1115
1081
  static $gtype: GObject.GType<Result>;
1116
1082
 
@@ -1133,16 +1099,19 @@ export namespace AppStreamCompose {
1133
1099
 
1134
1100
  // Signals
1135
1101
 
1102
+ /** @signal */
1136
1103
  connect<K extends keyof Result.SignalSignatures>(
1137
1104
  signal: K,
1138
1105
  callback: GObject.SignalCallback<this, Result.SignalSignatures[K]>,
1139
1106
  ): number;
1140
1107
  connect(signal: string, callback: (...args: any[]) => any): number;
1108
+ /** @signal */
1141
1109
  connect_after<K extends keyof Result.SignalSignatures>(
1142
1110
  signal: K,
1143
1111
  callback: GObject.SignalCallback<this, Result.SignalSignatures[K]>,
1144
1112
  ): number;
1145
1113
  connect_after(signal: string, callback: (...args: any[]) => any): number;
1114
+ /** @signal */
1146
1115
  emit<K extends keyof Result.SignalSignatures>(
1147
1116
  signal: K,
1148
1117
  ...args: GObject.GjsParameters<Result.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
@@ -1153,52 +1122,58 @@ export namespace AppStreamCompose {
1153
1122
 
1154
1123
  /**
1155
1124
  * Add component to the results set.
1156
- * @param cpt The #AsComponent to add.
1157
- * @param bytes Source data used to generate the GCID hash, or %NULL if nonexistent.
1158
- * @returns %TRUE on success.
1125
+ * @param cpt The {@link AppStream.Component} to add.
1126
+ * @param bytes Source data used to generate the GCID hash, or `null` if nonexistent.
1127
+ * @returns `true` on success.
1159
1128
  */
1160
1129
  add_component(cpt: AppStream.Component, bytes: GLib.Bytes | Uint8Array): boolean;
1161
1130
  /**
1162
1131
  * Add component to the results set, using string data.
1163
- * @param cpt The #AsComponent to add.
1164
- * @param data Source data used to generate the GCID hash, or %NULL if nonexistent.
1165
- * @returns %TRUE on success.
1132
+ * @param cpt The {@link AppStream.Component} to add.
1133
+ * @param data Source data used to generate the GCID hash, or `null` if nonexistent.
1134
+ * @returns `true` on success.
1166
1135
  */
1167
1136
  add_component_with_string(cpt: AppStream.Component, data: string): boolean;
1168
1137
  /**
1169
1138
  * Add an issue hint for a component.
1170
- * @param component_id The component-ID of the affected #AsComponent
1139
+ * @param component_id The component-ID of the affected {@link AppStream.Component}
1171
1140
  * @param tag AppStream Compose Issue hint tag
1172
1141
  * @param kv List of key-value pairs for replacement variables.
1173
- * @returns %TRUE if the added hint did not cause the component to be invalidated.
1142
+ * @returns `true` if the added hint did not cause the component to be invalidated.
1174
1143
  */
1175
1144
  add_hint_by_cid(component_id: string, tag: string, kv: string): boolean;
1176
1145
  /**
1177
1146
  * Add an issue hint for a component.
1178
- * @param cpt The affected #AsComponent
1147
+ * @param cpt The affected {@link AppStream.Component}
1179
1148
  * @param tag AppStream Compose Issue hint tag
1180
1149
  * @param kv List of key-value pairs for replacement variables.
1181
- * @returns %TRUE if the added hint did not cause the component to be invalidated.
1150
+ * @returns `true` if the added hint did not cause the component to be invalidated.
1182
1151
  */
1183
1152
  add_hint(cpt: AppStream.Component, tag: string, kv: string): boolean;
1153
+ /**
1154
+ * @returns The amount of components found for this unit.
1155
+ */
1184
1156
  components_count(): number;
1185
1157
  /**
1186
- * Gets all components this #AsResult instance contains.
1187
- * @returns An array of #AsComponent
1158
+ * Gets all components this `AsResult` instance contains.
1159
+ * @returns An array of {@link AppStream.Component}
1188
1160
  */
1189
1161
  fetch_components(): AppStream.Component[];
1190
1162
  /**
1191
1163
  * Get a list of all hints for all components that are registered with this result.
1192
- * @returns An array of #AscHint
1164
+ * @returns An array of {@link AppStreamCompose.Hint}
1193
1165
  */
1194
1166
  fetch_hints_all(): Hint[];
1195
1167
  /**
1196
1168
  * Retrieve the global component-ID string for the given component-ID,
1197
- * as long as component with the given ID is registered with this #AscResult.
1198
- * Otherwise, %NULL is returned.
1169
+ * as long as component with the given ID is registered with this {@link AppStreamCompose.Result}.
1170
+ * Otherwise, `null` is returned.
1199
1171
  * @param cid Component ID to look for.
1200
1172
  */
1201
1173
  gcid_for_cid(cid: string): string;
1174
+ /**
1175
+ * @param cpt
1176
+ */
1202
1177
  gcid_for_component(cpt: AppStream.Component): string;
1203
1178
  /**
1204
1179
  * Gets the ID name of the bundle (a package / Flatpak / any entity containing metadata)
@@ -1212,7 +1187,7 @@ export namespace AppStreamCompose {
1212
1187
  /**
1213
1188
  * Gets the component by its component-id-
1214
1189
  * @param cid Component ID to look for.
1215
- * @returns An #AsComponent
1190
+ * @returns An {@link AppStream.Component}
1216
1191
  */
1217
1192
  get_component(cid: string): AppStream.Component;
1218
1193
  /**
@@ -1228,41 +1203,44 @@ export namespace AppStreamCompose {
1228
1203
  /**
1229
1204
  * Gets hints for a component with the given component-id.
1230
1205
  * @param cid Component ID to look for.
1231
- * @returns An array of #AscHint or %NULL
1206
+ * @returns An array of {@link AppStreamCompose.Hint} or `null`
1232
1207
  */
1233
1208
  get_hints(cid: string): Hint[];
1234
1209
  /**
1235
1210
  * Test if a hint tag is associated with a given component in this result.
1236
- * @param cpt the #AsComponent to check
1211
+ * @param cpt the {@link AppStream.Component} to check
1237
1212
  * @param tag the hint tag to check for
1238
- * @returns %TRUE if a hint with this tag exists for the selected component.
1213
+ * @returns `true` if a hint with this tag exists for the selected component.
1239
1214
  */
1240
1215
  has_hint(cpt: AppStream.Component, tag: string): boolean;
1216
+ /**
1217
+ * @returns The amount of hints emitted for this unit.
1218
+ */
1241
1219
  hints_count(): number;
1242
1220
  /**
1243
- * Check if an #AsComponent was set to be ignored in this result
1221
+ * Check if an {@link AppStream.Component} was set to be ignored in this result
1244
1222
  * (usually due to errors).
1245
1223
  * @param cpt the component to check for.
1246
- * @returns %TRUE if the component is ignored.
1224
+ * @returns `true` if the component is ignored.
1247
1225
  */
1248
1226
  is_ignored(cpt: AppStream.Component): boolean;
1249
1227
  /**
1250
1228
  * Remove a component from the results set.
1251
- * @param cpt The #AsComponent to remove.
1252
- * @returns %TRUE if the component was found and removed.
1229
+ * @param cpt The {@link AppStream.Component} to remove.
1230
+ * @returns `true` if the component was found and removed.
1253
1231
  */
1254
1232
  remove_component(cpt: AppStream.Component): boolean;
1255
1233
  /**
1256
1234
  * Remove a component from the results set.
1257
1235
  * @param cid a component-ID
1258
- * @returns %TRUE if the component was found and removed.
1236
+ * @returns `true` if the component was found and removed.
1259
1237
  */
1260
1238
  remove_component_by_id(cid: string): boolean;
1261
1239
  /**
1262
1240
  * Remove a component from the results set.
1263
- * @param cpt The #AsComponent to remove.
1264
- * @param remove_gcid %TRUE if global component ID should be unregistered as well.
1265
- * @returns %TRUE if the component was found and removed.
1241
+ * @param cpt The {@link AppStream.Component} to remove.
1242
+ * @param remove_gcid `true` if global component ID should be unregistered as well.
1243
+ * @returns `true` if the component was found and removed.
1266
1244
  */
1267
1245
  remove_component_full(cpt: AppStream.Component, remove_gcid: boolean): boolean;
1268
1246
  /**
@@ -1280,20 +1258,23 @@ export namespace AppStreamCompose {
1280
1258
  * @param kind
1281
1259
  */
1282
1260
  set_bundle_kind(kind: AppStream.BundleKind | null): void;
1261
+ /**
1262
+ * @returns `true` if this result means the analyzed unit was ignored entirely.
1263
+ */
1283
1264
  unit_ignored(): boolean;
1284
1265
  /**
1285
1266
  * Update the global component ID for the given component.
1286
- * @param cpt The #AsComponent to edit.
1287
- * @param bytes The data to include in the global component ID, or %NULL
1288
- * @returns %TRUE if the component existed and was updated.
1267
+ * @param cpt The {@link AppStream.Component} to edit.
1268
+ * @param bytes The data to include in the global component ID, or `null`
1269
+ * @returns `true` if the component existed and was updated.
1289
1270
  */
1290
1271
  update_component_gcid(cpt: AppStream.Component, bytes?: GLib.Bytes | null): boolean;
1291
1272
  /**
1292
1273
  * Update the global component ID for the given component.
1293
1274
  * This is a convenience method for %asc_result_update_component_gcid
1294
- * @param cpt The #AsComponent to edit.
1295
- * @param data The data as string to include in the global component ID, or %NULL
1296
- * @returns %TRUE if the component existed and was updated.
1275
+ * @param cpt The {@link AppStream.Component} to edit.
1276
+ * @param data The data as string to include in the global component ID, or `null`
1277
+ * @returns `true` if the component existed and was updated.
1297
1278
  */
1298
1279
  update_component_gcid_with_string(cpt: AppStream.Component, data?: string | null): boolean;
1299
1280
  }
@@ -1307,6 +1288,9 @@ export namespace AppStreamCompose {
1307
1288
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
1308
1289
  }
1309
1290
 
1291
+ /**
1292
+ * @gir-type Class
1293
+ */
1310
1294
  class Unit extends GObject.Object {
1311
1295
  static $gtype: GObject.GType<Unit>;
1312
1296
 
@@ -1329,16 +1313,19 @@ export namespace AppStreamCompose {
1329
1313
 
1330
1314
  // Signals
1331
1315
 
1316
+ /** @signal */
1332
1317
  connect<K extends keyof Unit.SignalSignatures>(
1333
1318
  signal: K,
1334
1319
  callback: GObject.SignalCallback<this, Unit.SignalSignatures[K]>,
1335
1320
  ): number;
1336
1321
  connect(signal: string, callback: (...args: any[]) => any): number;
1322
+ /** @signal */
1337
1323
  connect_after<K extends keyof Unit.SignalSignatures>(
1338
1324
  signal: K,
1339
1325
  callback: GObject.SignalCallback<this, Unit.SignalSignatures[K]>,
1340
1326
  ): number;
1341
1327
  connect_after(signal: string, callback: (...args: any[]) => any): number;
1328
+ /** @signal */
1342
1329
  emit<K extends keyof Unit.SignalSignatures>(
1343
1330
  signal: K,
1344
1331
  ...args: GObject.GjsParameters<Unit.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
@@ -1348,27 +1335,32 @@ export namespace AppStreamCompose {
1348
1335
  // Virtual methods
1349
1336
 
1350
1337
  /**
1351
- * Close this unit, possibly freeing its resources. Calls to read_data() or
1352
- * get_contents() may not produce results until open() is called again.
1338
+ * Close this unit, possibly freeing its resources. Calls to `read_data()` or
1339
+ * `get_contents()` may not produce results until `open()` is called again.
1340
+ * @virtual
1353
1341
  */
1354
1342
  vfunc_close(): void;
1355
1343
  /**
1356
- * Returns %TRUE if the directory exists and files in it are readable.
1344
+ * Returns `true` if the directory exists and files in it are readable.
1357
1345
  * @param dirname The directory name to check.
1346
+ * @virtual
1358
1347
  */
1359
1348
  vfunc_dir_exists(dirname: string): boolean;
1360
1349
  /**
1361
- * Returns %TRUE if the filename exists and is readable using %asc_unit_read_data.
1350
+ * Returns `true` if the filename exists and is readable using %asc_unit_read_data.
1362
1351
  * @param filename The filename to check.
1352
+ * @virtual
1363
1353
  */
1364
1354
  vfunc_file_exists(filename: string): boolean;
1365
1355
  /**
1366
1356
  * Open this unit, populating its content listing.
1357
+ * @virtual
1367
1358
  */
1368
1359
  vfunc_open(): boolean;
1369
1360
  /**
1370
1361
  * Read the contents of the selected file into memory and return them.
1371
1362
  * @param filename The file to read data for.
1363
+ * @virtual
1372
1364
  */
1373
1365
  vfunc_read_data(filename: string): GLib.Bytes;
1374
1366
 
@@ -1382,17 +1374,17 @@ export namespace AppStreamCompose {
1382
1374
  */
1383
1375
  add_relevant_path(path: string): void;
1384
1376
  /**
1385
- * Close this unit, possibly freeing its resources. Calls to read_data() or
1386
- * get_contents() may not produce results until open() is called again.
1377
+ * Close this unit, possibly freeing its resources. Calls to `read_data()` or
1378
+ * `get_contents()` may not produce results until `open()` is called again.
1387
1379
  */
1388
1380
  close(): void;
1389
1381
  /**
1390
- * Returns %TRUE if the directory exists and files in it are readable.
1382
+ * Returns `true` if the directory exists and files in it are readable.
1391
1383
  * @param dirname The directory name to check.
1392
1384
  */
1393
1385
  dir_exists(dirname: string): boolean;
1394
1386
  /**
1395
- * Returns %TRUE if the filename exists and is readable using %asc_unit_read_data.
1387
+ * Returns `true` if the filename exists and is readable using %asc_unit_read_data.
1396
1388
  * @param filename The filename to check.
1397
1389
  */
1398
1390
  file_exists(filename: string): boolean;
@@ -1403,7 +1395,7 @@ export namespace AppStreamCompose {
1403
1395
  get_bundle_id(): string;
1404
1396
  /**
1405
1397
  * Gets the ID name of the bundle, normalized to be safe to use
1406
- * in filenames. This may *not* be the same name as set via asc_unit_get_bundle_id()
1398
+ * in filenames. This may *not* be the same name as set via `asc_unit_get_bundle_id()`
1407
1399
  */
1408
1400
  get_bundle_id_safe(): string;
1409
1401
  /**
@@ -1457,16 +1449,28 @@ export namespace AppStreamCompose {
1457
1449
  set_user_data(user_data?: any | null): void;
1458
1450
  }
1459
1451
 
1460
- type CanvasClass = typeof Canvas;
1452
+ /**
1453
+ * @gir-type Alias
1454
+ */
1461
1455
  type ComposeClass = typeof Compose;
1456
+ /**
1457
+ * @gir-type Alias
1458
+ */
1462
1459
  type DirectoryUnitClass = typeof DirectoryUnit;
1460
+ /**
1461
+ * @gir-type Alias
1462
+ */
1463
1463
  type HintClass = typeof Hint;
1464
+ /**
1465
+ * @gir-type Alias
1466
+ */
1464
1467
  type IconPolicyClass = typeof IconPolicy;
1465
1468
  /**
1466
- * A #AscIconPolicyIter structure represents an iterator that can be used
1467
- * to iterate over the icon sizes / policy entries of an #AscIconPolicy.
1468
- * #AscIconPolicyIter structures are typically allocated on the stack and
1469
- * then initialized with asc_icon_policy_iter_init().
1469
+ * A {@link AppStreamCompose.IconPolicyIter} structure represents an iterator that can be used
1470
+ * to iterate over the icon sizes / policy entries of an {@link AppStreamCompose.IconPolicy}.
1471
+ * {@link AppStreamCompose.IconPolicyIter} structures are typically allocated on the stack and
1472
+ * then initialized with `asc_icon_policy_iter_init()`.
1473
+ * @gir-type Struct
1470
1474
  */
1471
1475
  class IconPolicyIter {
1472
1476
  static $gtype: GObject.GType<IconPolicyIter>;
@@ -1480,9 +1484,9 @@ export namespace AppStreamCompose {
1480
1484
  /**
1481
1485
  * Initializes a policy iterator for the policy entry list and associates it
1482
1486
  * it with `ipolicy`.
1483
- * The #AscIconPolicyIter structure is typically allocated on the stack
1487
+ * The {@link AppStreamCompose.IconPolicyIter} structure is typically allocated on the stack
1484
1488
  * and does not need to be freed explicitly.
1485
- * @param ipolicy an #AscIconPolicy
1489
+ * @param ipolicy an {@link AppStreamCompose.IconPolicy}
1486
1490
  */
1487
1491
  init(ipolicy: IconPolicy): void;
1488
1492
  /**
@@ -1501,13 +1505,22 @@ export namespace AppStreamCompose {
1501
1505
  * }
1502
1506
  * ```
1503
1507
  *
1504
- * @returns %FALSE if the last entry has been reached.
1508
+ * @returns `false` if the last entry has been reached.
1505
1509
  */
1506
1510
  next(): [boolean, number, number, IconState | null];
1507
1511
  }
1508
1512
 
1513
+ /**
1514
+ * @gir-type Alias
1515
+ */
1509
1516
  type ImageClass = typeof Image;
1517
+ /**
1518
+ * @gir-type Alias
1519
+ */
1510
1520
  type ResultClass = typeof Result;
1521
+ /**
1522
+ * @gir-type Alias
1523
+ */
1511
1524
  type UnitClass = typeof Unit;
1512
1525
  /**
1513
1526
  * Name of the imported GIR library
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/appstreamcompose-1.0",
3
- "version": "1.0.0-4.0.0-beta.40",
3
+ "version": "1.0.0-4.0.0-beta.41",
4
4
  "description": "GJS TypeScript type definitions for AppStreamCompose-1.0, generated from library version 1.0.0",
5
5
  "type": "module",
6
6
  "module": "appstreamcompose-1.0.js",
@@ -31,13 +31,12 @@
31
31
  "test": "tsc --project tsconfig.json"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/gjs": "4.0.0-beta.40",
35
- "@girs/gio-2.0": "2.86.4-4.0.0-beta.40",
36
- "@girs/gobject-2.0": "2.86.4-4.0.0-beta.40",
37
- "@girs/glib-2.0": "2.86.4-4.0.0-beta.40",
38
- "@girs/gmodule-2.0": "2.0.0-4.0.0-beta.40",
39
- "@girs/gdkpixbuf-2.0": "2.0.0-4.0.0-beta.40",
40
- "@girs/appstream-1.0": "1.1.1-4.0.0-beta.40" },
34
+ "@girs/gjs": "4.0.0-beta.41",
35
+ "@girs/gio-2.0": "2.88.0-4.0.0-beta.41",
36
+ "@girs/gobject-2.0": "2.88.0-4.0.0-beta.41",
37
+ "@girs/glib-2.0": "2.88.0-4.0.0-beta.41",
38
+ "@girs/gmodule-2.0": "2.0.0-4.0.0-beta.41",
39
+ "@girs/appstream-1.0": "1.1.0-4.0.0-beta.41" },
41
40
  "devDependencies": {
42
41
  "typescript": "*"
43
42
  },
package/tsconfig.json CHANGED
@@ -17,7 +17,27 @@
17
17
  "inlineSources": false,
18
18
  "newLine": "LF",
19
19
  // Show diagnostics
20
- "diagnostics": true
20
+ "diagnostics": true,
21
+ "paths": {
22
+ "@girs/gio-2.0": [
23
+ "../gio-2.0/index.d.ts"
24
+ ],
25
+ "@girs/gobject-2.0": [
26
+ "../gobject-2.0/index.d.ts"
27
+ ],
28
+ "@girs/glib-2.0": [
29
+ "../glib-2.0/index.d.ts"
30
+ ],
31
+ "@girs/gmodule-2.0": [
32
+ "../gmodule-2.0/index.d.ts"
33
+ ],
34
+ "@girs/appstream-1.0": [
35
+ "../appstream-1.0/index.d.ts"
36
+ ],
37
+ "@girs/gjs": [
38
+ "../gjs/index.d.ts"
39
+ ]
40
+ }
21
41
  },
22
42
  "include": ["./appstreamcompose-1.0.d.ts"]
23
43
  }
package/typedoc.json CHANGED
@@ -2,6 +2,8 @@
2
2
  "entryPoints": ["./appstreamcompose-1.0.d.ts"],
3
3
  "readme": "./README.md",
4
4
  "name": "AppStreamCompose-1.0",
5
- "tsconfig": "./tsconfig.json"
5
+ "tsconfig": "./tsconfig.json",
6
+ "skipErrorChecking": true,
7
+ "highlightLanguages": ["typescript", "javascript", "c", "cpp", "xml", "bash", "json", "css"]
6
8
  }
7
9