@girs/appstreamcompose-1.0 1.0.0-4.0.0-beta.18 → 1.0.0-4.0.0-beta.19
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 +1 -1
- package/appstreamcompose-1.0.d.ts +14 -14
- package/package.json +8 -8
- package/tsconfig.json +3 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
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.
|
|
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.19.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
|
@@ -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.
|
|
@@ -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.
|
|
@@ -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
|
|
@@ -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()
|
|
@@ -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.
|
|
@@ -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.
|
|
@@ -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.
|
|
3
|
+
"version": "1.0.0-4.0.0-beta.19",
|
|
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.
|
|
35
|
-
"@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.
|
|
36
|
-
"@girs/gio-2.0": "^2.82.2-4.0.0-beta.
|
|
37
|
-
"@girs/gjs": "^4.0.0-beta.
|
|
38
|
-
"@girs/glib-2.0": "^2.82.2-4.0.0-beta.
|
|
39
|
-
"@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.
|
|
40
|
-
"@girs/gobject-2.0": "^2.82.2-4.0.0-beta.
|
|
34
|
+
"@girs/appstream-1.0": "^1.0.0-4.0.0-beta.19",
|
|
35
|
+
"@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.19",
|
|
36
|
+
"@girs/gio-2.0": "^2.82.2-4.0.0-beta.19",
|
|
37
|
+
"@girs/gjs": "^4.0.0-beta.19",
|
|
38
|
+
"@girs/glib-2.0": "^2.82.2-4.0.0-beta.19",
|
|
39
|
+
"@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.19",
|
|
40
|
+
"@girs/gobject-2.0": "^2.82.2-4.0.0-beta.19"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"typescript": "*"
|