@girs/peas-2 2.0.0-4.0.0-rc.15 → 2.0.0-4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +6 -6
- package/peas-2.d.ts +11 -11
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Peas-2, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0
|
|
8
|
+
GJS TypeScript type definitions for Peas-2, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0.
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/peas-2",
|
|
3
|
-
"version": "2.0.0-4.0.0
|
|
3
|
+
"version": "2.0.0-4.0.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Peas-2, generated from library version 2.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "peas-2.js",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"test": "tsc --project tsconfig.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@girs/gjs": "4.0.0
|
|
35
|
-
"@girs/gio-2.0": "2.88.0-4.0.0
|
|
36
|
-
"@girs/gobject-2.0": "2.88.0-4.0.0
|
|
37
|
-
"@girs/glib-2.0": "2.88.0-4.0.0
|
|
38
|
-
"@girs/gmodule-2.0": "2.0.0-4.0.0
|
|
34
|
+
"@girs/gjs": "4.0.0",
|
|
35
|
+
"@girs/gio-2.0": "2.88.0-4.0.0",
|
|
36
|
+
"@girs/gobject-2.0": "2.88.0-4.0.0",
|
|
37
|
+
"@girs/glib-2.0": "2.88.0-4.0.0",
|
|
38
|
+
"@girs/gmodule-2.0": "2.0.0-4.0.0" },
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"typescript": "*"
|
|
41
41
|
},
|
package/peas-2.d.ts
CHANGED
|
@@ -242,7 +242,7 @@ export namespace Peas {
|
|
|
242
242
|
* @param module_dir the plugin module directory.
|
|
243
243
|
* @param data_dir the plugin data directory.
|
|
244
244
|
*/
|
|
245
|
-
add_search_path(module_dir: string, data_dir:
|
|
245
|
+
add_search_path(module_dir: string, data_dir: string | null): void;
|
|
246
246
|
|
|
247
247
|
/**
|
|
248
248
|
* If the plugin identified by `info` implements the `extension_type`,
|
|
@@ -347,7 +347,7 @@ export namespace Peas {
|
|
|
347
347
|
* If `plugin_names` is `null`, all plugins will be unloaded.
|
|
348
348
|
* @param plugin_names A `null`-terminated array of plugin names, or `null`.
|
|
349
349
|
*/
|
|
350
|
-
set_loaded_plugins(plugin_names:
|
|
350
|
+
set_loaded_plugins(plugin_names: string[] | null): void;
|
|
351
351
|
|
|
352
352
|
/**
|
|
353
353
|
* Unloads the plugin corresponding to `info`.
|
|
@@ -398,7 +398,7 @@ export namespace Peas {
|
|
|
398
398
|
* @param position the position of the item to fetch
|
|
399
399
|
* @returns the object at `position`.
|
|
400
400
|
*/
|
|
401
|
-
get_item(position: number):
|
|
401
|
+
get_item(position: number): A | null;
|
|
402
402
|
|
|
403
403
|
/**
|
|
404
404
|
* Emits the {@link Gio.ListModel.SignalSignatures.items_changed | Gio.ListModel::items-changed} signal on `list`.
|
|
@@ -438,7 +438,7 @@ export namespace Peas {
|
|
|
438
438
|
* @param position the position of the item to fetch
|
|
439
439
|
* @virtual
|
|
440
440
|
*/
|
|
441
|
-
vfunc_get_item(position: number):
|
|
441
|
+
vfunc_get_item(position: number): A | null;
|
|
442
442
|
|
|
443
443
|
/**
|
|
444
444
|
* Gets the type of the items in `list`.
|
|
@@ -719,7 +719,7 @@ export namespace Peas {
|
|
|
719
719
|
|
|
720
720
|
_init(...args: any[]): void;
|
|
721
721
|
|
|
722
|
-
static ["new"](engine:
|
|
722
|
+
static ["new"](engine: Engine | null, exten_type: GObject.GType, prop_names: string[], prop_values: (GObject.Value | any)[]): ExtensionSet;
|
|
723
723
|
|
|
724
724
|
// Signals
|
|
725
725
|
/** @signal */
|
|
@@ -789,7 +789,7 @@ export namespace Peas {
|
|
|
789
789
|
* @param position the position of the item to fetch
|
|
790
790
|
* @returns the object at `position`.
|
|
791
791
|
*/
|
|
792
|
-
get_item(position: number):
|
|
792
|
+
get_item(position: number): A | null;
|
|
793
793
|
|
|
794
794
|
/**
|
|
795
795
|
* Emits the {@link Gio.ListModel.SignalSignatures.items_changed | Gio.ListModel::items-changed} signal on `list`.
|
|
@@ -829,7 +829,7 @@ export namespace Peas {
|
|
|
829
829
|
* @param position the position of the item to fetch
|
|
830
830
|
* @virtual
|
|
831
831
|
*/
|
|
832
|
-
vfunc_get_item(position: number):
|
|
832
|
+
vfunc_get_item(position: number): A | null;
|
|
833
833
|
|
|
834
834
|
/**
|
|
835
835
|
* Gets the type of the items in `list`.
|
|
@@ -1294,7 +1294,7 @@ export namespace Peas {
|
|
|
1294
1294
|
* @param key The key to lookup.
|
|
1295
1295
|
* @returns the external data, or `null` if the external data could not be found.
|
|
1296
1296
|
*/
|
|
1297
|
-
get_external_data(key: string):
|
|
1297
|
+
get_external_data(key: string): string | null;
|
|
1298
1298
|
|
|
1299
1299
|
/**
|
|
1300
1300
|
* Gets the help URI of the plugin.
|
|
@@ -1360,7 +1360,7 @@ export namespace Peas {
|
|
|
1360
1360
|
* @param filename The filename of the resource, or `null`.
|
|
1361
1361
|
* @returns a new {@link Gio.Resource}, or `null`.
|
|
1362
1362
|
*/
|
|
1363
|
-
get_resource(filename:
|
|
1363
|
+
get_resource(filename: string | null): Gio.Resource;
|
|
1364
1364
|
|
|
1365
1365
|
/**
|
|
1366
1366
|
* Creates a new {@link Gio.Settings} for the given `schema_id` and if
|
|
@@ -1369,7 +1369,7 @@ export namespace Peas {
|
|
|
1369
1369
|
* @param schema_id The schema id.
|
|
1370
1370
|
* @returns a new {@link Gio.Settings}.
|
|
1371
1371
|
*/
|
|
1372
|
-
get_settings(schema_id:
|
|
1372
|
+
get_settings(schema_id: string | null): Gio.Settings | null;
|
|
1373
1373
|
|
|
1374
1374
|
/**
|
|
1375
1375
|
* Gets the version of the plugin.
|
|
@@ -1448,7 +1448,7 @@ export namespace Peas {
|
|
|
1448
1448
|
* See `peas_plugin_info_get_resource()` for more information.
|
|
1449
1449
|
* @param filename The filename of the resource, or `null`.
|
|
1450
1450
|
*/
|
|
1451
|
-
load_resource(filename:
|
|
1451
|
+
load_resource(filename: string | null): void;
|
|
1452
1452
|
}
|
|
1453
1453
|
|
|
1454
1454
|
|