@girs/appstreamcompose-1.0 1.0.0-4.0.0-beta.18 → 1.0.0-4.0.0-beta.20

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.18.
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.20.
9
9
 
10
10
 
11
11
  ## Install
@@ -11,8 +11,8 @@
11
11
  import type Gio from '@girs/gio-2.0';
12
12
  import type GObject from '@girs/gobject-2.0';
13
13
  import type GLib from '@girs/glib-2.0';
14
- import type GModule from '@girs/gmodule-2.0';
15
14
  import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
15
+ import type GModule from '@girs/gmodule-2.0';
16
16
  import type AppStream from '@girs/appstream-1.0';
17
17
 
18
18
  export namespace AppStreamCompose {
@@ -217,7 +217,7 @@ export namespace AppStreamCompose {
217
217
  */
218
218
  function globals_add_hint_tag(
219
219
  tag: string,
220
- severity: AppStream.IssueSeverity,
220
+ severity: AppStream.IssueSeverity | null,
221
221
  explanation: string,
222
222
  overrideExisting: boolean,
223
223
  ): boolean;
@@ -294,7 +294,7 @@ export namespace AppStreamCompose {
294
294
  * @param istate the #AscIconState.
295
295
  * @returns string version of @istate
296
296
  */
297
- function icon_state_to_string(istate: IconState): string;
297
+ function icon_state_to_string(istate: IconState | null): string;
298
298
  function image_error_quark(): GLib.Quark;
299
299
  /**
300
300
  * Returns the image format type based on the given file's filename.
@@ -313,7 +313,7 @@ export namespace AppStreamCompose {
313
313
  * @param format the %AscImageFormat.
314
314
  * @returns string version of @format
315
315
  */
316
- function image_format_to_string(format: ImageFormat): string;
316
+ function image_format_to_string(format: ImageFormat | null): string;
317
317
  /**
318
318
  * Optimizes a PNG graphic for size with optipng, if its binary
319
319
  * is available and this feature is enabled.
@@ -408,7 +408,7 @@ export namespace AppStreamCompose {
408
408
  */
409
409
  BLUR,
410
410
  }
411
- module Canvas {
411
+ namespace Canvas {
412
412
  // Constructor properties interface
413
413
 
414
414
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -447,7 +447,7 @@ export namespace AppStreamCompose {
447
447
  save_png(fname: string): boolean;
448
448
  }
449
449
 
450
- module Compose {
450
+ namespace Compose {
451
451
  // Constructor properties interface
452
452
 
453
453
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -481,7 +481,7 @@ export namespace AppStreamCompose {
481
481
  * Add compose flags.
482
482
  * @param flags The compose flags to add.
483
483
  */
484
- add_flags(flags: ComposeFlags): void;
484
+ add_flags(flags: ComposeFlags | null): void;
485
485
  /**
486
486
  * Add an #AscUnit as data source for metadata processing.
487
487
  * @param unit The #AscUnit to add
@@ -581,7 +581,7 @@ export namespace AppStreamCompose {
581
581
  * Remove compose flags.
582
582
  * @param flags The compose flags to remove.
583
583
  */
584
- remove_flags(flags: ComposeFlags): void;
584
+ remove_flags(flags: ComposeFlags | null): void;
585
585
  /**
586
586
  * Reset the results, units and run-specific settings so the
587
587
  * instance can be reused for another metadata generation run.
@@ -620,12 +620,12 @@ export namespace AppStreamCompose {
620
620
  * for this #AscCompose.
621
621
  * @param flags The compose flags bitfield.
622
622
  */
623
- set_flags(flags: ComposeFlags): void;
623
+ set_flags(flags: ComposeFlags | null): void;
624
624
  /**
625
625
  * Set the format kind of the catalog metadata that we should generate.
626
626
  * @param kind The format, e.g. %AS_FORMAT_KIND_XML
627
627
  */
628
- set_format(kind: AppStream.FormatKind): void;
628
+ set_format(kind: AppStream.FormatKind | null): void;
629
629
  /**
630
630
  * Set an output location for HTML reports of issues generated
631
631
  * during a compose run.
@@ -682,7 +682,7 @@ export namespace AppStreamCompose {
682
682
  set_prefix(prefix: string): void;
683
683
  }
684
684
 
685
- module DirectoryUnit {
685
+ namespace DirectoryUnit {
686
686
  // Constructor properties interface
687
687
 
688
688
  interface ConstructorProps extends Unit.ConstructorProps {}
@@ -715,7 +715,7 @@ export namespace AppStreamCompose {
715
715
  set_root(root_dir: string): void;
716
716
  }
717
717
 
718
- module Hint {
718
+ namespace Hint {
719
719
  // Constructor properties interface
720
720
 
721
721
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -782,7 +782,7 @@ export namespace AppStreamCompose {
782
782
  * Sets the issue severity of this hint.
783
783
  * @param severity
784
784
  */
785
- set_severity(severity: AppStream.IssueSeverity): void;
785
+ set_severity(severity: AppStream.IssueSeverity | null): void;
786
786
  /**
787
787
  * Sets the unique tag for the type of this hint.
788
788
  * @param tag
@@ -790,7 +790,7 @@ export namespace AppStreamCompose {
790
790
  set_tag(tag: string): void;
791
791
  }
792
792
 
793
- module IconPolicy {
793
+ namespace IconPolicy {
794
794
  // Constructor properties interface
795
795
 
796
796
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -820,7 +820,7 @@ export namespace AppStreamCompose {
820
820
  * @param icon_scale the icon scale factor, e.g. 1
821
821
  * @param state the designated #AscIconState
822
822
  */
823
- set_policy(icon_size: number, icon_scale: number, state: IconState): void;
823
+ set_policy(icon_size: number, icon_scale: number, state: IconState | null): void;
824
824
  /**
825
825
  * Converts the current icon policy into a textual representation.
826
826
  * @returns The icon policy serialized into a string. Free with g_free()
@@ -828,7 +828,7 @@ export namespace AppStreamCompose {
828
828
  to_string(): string;
829
829
  }
830
830
 
831
- module Image {
831
+ namespace Image {
832
832
  // Constructor properties interface
833
833
 
834
834
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -886,7 +886,7 @@ export namespace AppStreamCompose {
886
886
  * @param flags a #AscImageLoadFlags, e.g. %ASC_IMAGE_LOAD_FLAG_NONE
887
887
  * @returns %TRUE for success
888
888
  */
889
- load_filename(filename: string, dest_size: number, src_size_min: number, flags: ImageLoadFlags): boolean;
889
+ load_filename(filename: string, dest_size: number, src_size_min: number, flags: ImageLoadFlags | null): boolean;
890
890
  /**
891
891
  * Saves the image to a file.
892
892
  * @param filename filename to write to
@@ -895,7 +895,7 @@ export namespace AppStreamCompose {
895
895
  * @param flags some #AscImageSaveFlags values, e.g. %ASC_IMAGE_SAVE_FLAG_PAD_16_9
896
896
  * @returns %TRUE for success
897
897
  */
898
- save_filename(filename: string, width: number, height: number, flags: ImageSaveFlags): boolean;
898
+ save_filename(filename: string, width: number, height: number, flags: ImageSaveFlags | null): boolean;
899
899
  /**
900
900
  * Resamples a pixbuf to a specific size.
901
901
  * @param width target width, or 0 for default
@@ -903,7 +903,7 @@ export namespace AppStreamCompose {
903
903
  * @param flags some #AscImageSaveFlags values, e.g. %ASC_IMAGE_SAVE_FLAG_PAD_16_9
904
904
  * @returns A #GdkPixbuf of the specified size
905
905
  */
906
- save_pixbuf(width: number, height: number, flags: ImageSaveFlags): GdkPixbuf.Pixbuf;
906
+ save_pixbuf(width: number, height: number, flags: ImageSaveFlags | null): GdkPixbuf.Pixbuf;
907
907
  /**
908
908
  * Scale the image to the given size.
909
909
  * @param new_width The new width.
@@ -935,7 +935,7 @@ export namespace AppStreamCompose {
935
935
  set_pixbuf(pixbuf: GdkPixbuf.Pixbuf): void;
936
936
  }
937
937
 
938
- module Result {
938
+ namespace Result {
939
939
  // Constructor properties interface
940
940
 
941
941
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -1082,7 +1082,7 @@ export namespace AppStreamCompose {
1082
1082
  * Sets the kind of the bundle these results are for.
1083
1083
  * @param kind
1084
1084
  */
1085
- set_bundle_kind(kind: AppStream.BundleKind): void;
1085
+ set_bundle_kind(kind: AppStream.BundleKind | null): void;
1086
1086
  unit_ignored(): boolean;
1087
1087
  /**
1088
1088
  * Update the global component ID for the given component.
@@ -1101,7 +1101,7 @@ export namespace AppStreamCompose {
1101
1101
  update_component_gcid_with_string(cpt: AppStream.Component, data?: string | null): boolean;
1102
1102
  }
1103
1103
 
1104
- module Unit {
1104
+ namespace Unit {
1105
1105
  // Constructor properties interface
1106
1106
 
1107
1107
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -1216,7 +1216,7 @@ export namespace AppStreamCompose {
1216
1216
  * Sets the kind of the bundle this unit represents.
1217
1217
  * @param kind
1218
1218
  */
1219
- set_bundle_kind(kind: AppStream.BundleKind): void;
1219
+ set_bundle_kind(kind: AppStream.BundleKind | null): void;
1220
1220
  /**
1221
1221
  * Set list of files this unit contains.
1222
1222
  * @param contents A list of files contained by this unit.
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.18",
3
+ "version": "1.0.0-4.0.0-beta.20",
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,13 @@
31
31
  "test": "tsc --project tsconfig.json"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/appstream-1.0": "^1.0.0-4.0.0-beta.18",
35
- "@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.18",
36
- "@girs/gio-2.0": "^2.82.2-4.0.0-beta.18",
37
- "@girs/gjs": "^4.0.0-beta.18",
38
- "@girs/glib-2.0": "^2.82.2-4.0.0-beta.18",
39
- "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.18",
40
- "@girs/gobject-2.0": "^2.82.2-4.0.0-beta.18"
34
+ "@girs/appstream-1.0": "^1.0.0-4.0.0-beta.20",
35
+ "@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.20",
36
+ "@girs/gio-2.0": "^2.82.4-4.0.0-beta.20",
37
+ "@girs/gjs": "^4.0.0-beta.20",
38
+ "@girs/glib-2.0": "^2.82.4-4.0.0-beta.20",
39
+ "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.20",
40
+ "@girs/gobject-2.0": "^2.82.4-4.0.0-beta.20"
41
41
  },
42
42
  "devDependencies": {
43
43
  "typescript": "*"
package/tsconfig.json CHANGED
@@ -15,7 +15,9 @@
15
15
  "removeComments": false,
16
16
  "inlineSourceMap": false,
17
17
  "inlineSources": false,
18
- "newLine": "LF"
18
+ "newLine": "LF",
19
+ // Show diagnostics
20
+ "diagnostics": true
19
21
  },
20
22
  "include": ["./appstreamcompose-1.0.d.ts"]
21
23
  }