@girs/geocodeglib-2.0 2.0.0-4.0.0-beta.5 → 2.0.0-4.0.0-beta.7

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/geocodeglib-2.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for GeocodeGlib-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.5.
8
+ GJS TypeScript type definitions for GeocodeGlib-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.7.
9
9
 
10
10
 
11
11
  ## Install
@@ -1,12 +1,9 @@
1
-
2
1
  declare module 'gi://GeocodeGlib?version=2.0' {
3
- import GeocodeGlib from '@girs/geocodeglib-2.0';
4
- export default GeocodeGlib;
2
+ import GeocodeGlib20 from '@girs/geocodeglib-2.0';
3
+ export default GeocodeGlib20;
5
4
  }
6
5
 
7
6
  declare module 'gi://GeocodeGlib' {
8
7
  import GeocodeGlib20 from 'gi://GeocodeGlib?version=2.0';
9
8
  export default GeocodeGlib20;
10
9
  }
11
-
12
-
@@ -1,4 +1,3 @@
1
-
2
1
  import GeocodeGlib20 from '@girs/geocodeglib-2.0';
3
2
 
4
3
  declare global {
@@ -8,5 +7,3 @@ declare global {
8
7
  }
9
8
 
10
9
  export default GjsGiImports;
11
-
12
-
@@ -1,23 +1,25 @@
1
- /*
1
+ /**
2
2
  * Type Definitions for Gjs (https://gjs.guide/)
3
3
  *
4
4
  * These type definitions are automatically generated, do not edit them by hand.
5
5
  * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
6
+ *
7
+ * The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
6
8
  */
7
9
 
8
- import './geocodeglib-2.0-ambient.d.ts';
9
-
10
- /**
11
- * GeocodeGlib-2.0
12
- */
13
-
10
+ // Module dependencies
14
11
  import type Soup from '@girs/soup-3.0';
15
12
  import type Gio from '@girs/gio-2.0';
16
13
  import type GObject from '@girs/gobject-2.0';
17
14
  import type GLib from '@girs/glib-2.0';
15
+ import type GModule from '@girs/gmodule-2.0';
18
16
  import type Json from '@girs/json-1.0';
19
17
 
20
18
  export namespace GeocodeGlib {
19
+ /**
20
+ * GeocodeGlib-2.0
21
+ */
22
+
21
23
  /**
22
24
  * Error codes returned by geocode-glib functions.
23
25
  */
@@ -1107,7 +1109,7 @@ export namespace GeocodeGlib {
1107
1109
  * static void
1108
1110
  * my_object_class_init (MyObjectClass *klass)
1109
1111
  * {
1110
- * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
1112
+ * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
1111
1113
  * 0, 100,
1112
1114
  * 50,
1113
1115
  * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -1260,10 +1262,45 @@ export namespace GeocodeGlib {
1260
1262
  * @param closure #GClosure to watch
1261
1263
  */
1262
1264
  watch_closure(closure: GObject.Closure): void;
1265
+ /**
1266
+ * the `constructed` function is called by g_object_new() as the
1267
+ * final step of the object creation process. At the point of the call, all
1268
+ * construction properties have been set on the object. The purpose of this
1269
+ * call is to allow for object initialisation steps that can only be performed
1270
+ * after construction properties have been set. `constructed` implementors
1271
+ * should chain up to the `constructed` call of their parent class to allow it
1272
+ * to complete its initialisation.
1273
+ */
1263
1274
  vfunc_constructed(): void;
1275
+ /**
1276
+ * emits property change notification for a bunch
1277
+ * of properties. Overriding `dispatch_properties_changed` should be rarely
1278
+ * needed.
1279
+ * @param n_pspecs
1280
+ * @param pspecs
1281
+ */
1264
1282
  vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
1283
+ /**
1284
+ * the `dispose` function is supposed to drop all references to other
1285
+ * objects, but keep the instance otherwise intact, so that client method
1286
+ * invocations still work. It may be run multiple times (due to reference
1287
+ * loops). Before returning, `dispose` should chain up to the `dispose` method
1288
+ * of the parent class.
1289
+ */
1265
1290
  vfunc_dispose(): void;
1291
+ /**
1292
+ * instance finalization function, should finish the finalization of
1293
+ * the instance begun in `dispose` and chain up to the `finalize` method of the
1294
+ * parent class.
1295
+ */
1266
1296
  vfunc_finalize(): void;
1297
+ /**
1298
+ * the generic getter for all properties of this type. Should be
1299
+ * overridden for every type with properties.
1300
+ * @param property_id
1301
+ * @param value
1302
+ * @param pspec
1303
+ */
1267
1304
  vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
1268
1305
  /**
1269
1306
  * Emits a "notify" signal for the property `property_name` on `object`.
@@ -1279,6 +1316,16 @@ export namespace GeocodeGlib {
1279
1316
  * @param pspec
1280
1317
  */
1281
1318
  vfunc_notify(pspec: GObject.ParamSpec): void;
1319
+ /**
1320
+ * the generic setter for all properties of this type. Should be
1321
+ * overridden for every type with properties. If implementations of
1322
+ * `set_property` don't emit property change notification explicitly, this will
1323
+ * be done implicitly by the type system. However, if the notify signal is
1324
+ * emitted explicitly, the type system will not emit it a second time.
1325
+ * @param property_id
1326
+ * @param value
1327
+ * @param pspec
1328
+ */
1282
1329
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
1283
1330
  disconnect(id: number): void;
1284
1331
  set(properties: { [key: string]: any }): void;
@@ -1381,12 +1428,27 @@ export namespace GeocodeGlib {
1381
1428
 
1382
1429
  // Own virtual methods of GeocodeGlib.Nominatim
1383
1430
 
1431
+ /**
1432
+ * synchronous query function to override network `GET` requests.
1433
+ * @param uri
1434
+ * @param cancellable
1435
+ */
1384
1436
  vfunc_query(uri: string, cancellable?: Gio.Cancellable | null): string;
1437
+ /**
1438
+ * asynchronous version of `query`.
1439
+ * @param uri
1440
+ * @param cancellable
1441
+ * @param callback
1442
+ */
1385
1443
  vfunc_query_async(
1386
1444
  uri: string,
1387
1445
  cancellable?: Gio.Cancellable | null,
1388
1446
  callback?: Gio.AsyncReadyCallback<this> | null,
1389
1447
  ): void;
1448
+ /**
1449
+ * asynchronous finish function for `query_async`.
1450
+ * @param res
1451
+ */
1390
1452
  vfunc_query_finish(res: Gio.AsyncResult): string;
1391
1453
 
1392
1454
  // Inherited methods
@@ -1757,7 +1819,7 @@ export namespace GeocodeGlib {
1757
1819
  * static void
1758
1820
  * my_object_class_init (MyObjectClass *klass)
1759
1821
  * {
1760
- * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
1822
+ * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
1761
1823
  * 0, 100,
1762
1824
  * 50,
1763
1825
  * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -1910,10 +1972,45 @@ export namespace GeocodeGlib {
1910
1972
  * @param closure #GClosure to watch
1911
1973
  */
1912
1974
  watch_closure(closure: GObject.Closure): void;
1975
+ /**
1976
+ * the `constructed` function is called by g_object_new() as the
1977
+ * final step of the object creation process. At the point of the call, all
1978
+ * construction properties have been set on the object. The purpose of this
1979
+ * call is to allow for object initialisation steps that can only be performed
1980
+ * after construction properties have been set. `constructed` implementors
1981
+ * should chain up to the `constructed` call of their parent class to allow it
1982
+ * to complete its initialisation.
1983
+ */
1913
1984
  vfunc_constructed(): void;
1985
+ /**
1986
+ * emits property change notification for a bunch
1987
+ * of properties. Overriding `dispatch_properties_changed` should be rarely
1988
+ * needed.
1989
+ * @param n_pspecs
1990
+ * @param pspecs
1991
+ */
1914
1992
  vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
1993
+ /**
1994
+ * the `dispose` function is supposed to drop all references to other
1995
+ * objects, but keep the instance otherwise intact, so that client method
1996
+ * invocations still work. It may be run multiple times (due to reference
1997
+ * loops). Before returning, `dispose` should chain up to the `dispose` method
1998
+ * of the parent class.
1999
+ */
1915
2000
  vfunc_dispose(): void;
2001
+ /**
2002
+ * instance finalization function, should finish the finalization of
2003
+ * the instance begun in `dispose` and chain up to the `finalize` method of the
2004
+ * parent class.
2005
+ */
1916
2006
  vfunc_finalize(): void;
2007
+ /**
2008
+ * the generic getter for all properties of this type. Should be
2009
+ * overridden for every type with properties.
2010
+ * @param property_id
2011
+ * @param value
2012
+ * @param pspec
2013
+ */
1917
2014
  vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
1918
2015
  /**
1919
2016
  * Emits a "notify" signal for the property `property_name` on `object`.
@@ -1929,6 +2026,16 @@ export namespace GeocodeGlib {
1929
2026
  * @param pspec
1930
2027
  */
1931
2028
  vfunc_notify(pspec: GObject.ParamSpec): void;
2029
+ /**
2030
+ * the generic setter for all properties of this type. Should be
2031
+ * overridden for every type with properties. If implementations of
2032
+ * `set_property` don't emit property change notification explicitly, this will
2033
+ * be done implicitly by the type system. However, if the notify signal is
2034
+ * emitted explicitly, the type system will not emit it a second time.
2035
+ * @param property_id
2036
+ * @param value
2037
+ * @param pspec
2038
+ */
1932
2039
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
1933
2040
  disconnect(id: number): void;
1934
2041
  set(properties: { [key: string]: any }): void;
@@ -2662,4 +2769,5 @@ export namespace GeocodeGlib {
2662
2769
  }
2663
2770
 
2664
2771
  export default GeocodeGlib;
2772
+
2665
2773
  // END
@@ -1,6 +1,5 @@
1
1
 
2
- // @ts-expect-error
3
- import GeocodeGlib from 'gi://GeocodeGlib?version=2.0';
4
- export { GeocodeGlib };
5
- export default GeocodeGlib;
2
+ // @ts-expect-error
3
+ import GeocodeGlib from 'gi://GeocodeGlib?version=2.0';
4
+ export default GeocodeGlib;
6
5
 
package/index.d.ts ADDED
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Type Definitions for Gjs (https://gjs.guide/)
3
+ *
4
+ * These type definitions are automatically generated, do not edit them by hand.
5
+ * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
6
+ *
7
+ * This template is used to generate the index.d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
8
+ */
9
+
10
+ import './geocodeglib-2.0-ambient.d.ts';
11
+
12
+ import './geocodeglib-2.0-import.d.ts';
13
+
14
+ import GeocodeGlib from './geocodeglib-2.0.js';
15
+ export default GeocodeGlib;
package/index.js ADDED
@@ -0,0 +1,5 @@
1
+
2
+ // @ts-expect-error
3
+ import GeocodeGlib from './geocodeglib-2.0.js';
4
+ export default GeocodeGlib;
5
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/geocodeglib-2.0",
3
- "version": "2.0.0-4.0.0-beta.5",
3
+ "version": "2.0.0-4.0.0-beta.7",
4
4
  "description": "GJS TypeScript type definitions for GeocodeGlib-2.0, generated from library version 2.0.0",
5
5
  "type": "module",
6
6
  "module": "geocodeglib-2.0.js",
@@ -16,22 +16,28 @@
16
16
  "import": "./geocodeglib-2.0-import.js",
17
17
  "default": "./geocodeglib-2.0-import.js"
18
18
  },
19
- ".": {
19
+ "./geocodeglib-2.0": {
20
20
  "types": "./geocodeglib-2.0.d.ts",
21
21
  "import": "./geocodeglib-2.0.js",
22
22
  "default": "./geocodeglib-2.0.js"
23
+ },
24
+ ".": {
25
+ "types": "./index.d.ts",
26
+ "import": "./index.js",
27
+ "default": "./index.js"
23
28
  }
24
29
  },
25
30
  "scripts": {
26
- "test": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit geocodeglib-2.0.d.ts"
31
+ "test": "tsc --project tsconfig.json"
27
32
  },
28
33
  "dependencies": {
29
- "@girs/gio-2.0": "^2.80.0-4.0.0-beta.5",
30
- "@girs/gjs": "^4.0.0-beta.5",
31
- "@girs/glib-2.0": "^2.80.0-4.0.0-beta.5",
32
- "@girs/gobject-2.0": "^2.80.0-4.0.0-beta.5",
33
- "@girs/json-1.0": "^1.8.0-4.0.0-beta.5",
34
- "@girs/soup-3.0": "^3.4.4-4.0.0-beta.5"
34
+ "@girs/gio-2.0": "^2.80.2-4.0.0-beta.7",
35
+ "@girs/gjs": "^4.0.0-beta.7",
36
+ "@girs/glib-2.0": "^2.80.2-4.0.0-beta.7",
37
+ "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.7",
38
+ "@girs/gobject-2.0": "^2.80.2-4.0.0-beta.7",
39
+ "@girs/json-1.0": "^1.8.0-4.0.0-beta.7",
40
+ "@girs/soup-3.0": "^3.4.4-4.0.0-beta.7"
35
41
  },
36
42
  "devDependencies": {
37
43
  "typescript": "*"
package/tsconfig.json CHANGED
@@ -2,11 +2,11 @@
2
2
  "compilerOptions": {
3
3
  // General settings for code interpretation
4
4
  "target": "ESNext",
5
- "module": "ESNext",
5
+ "module": "NodeNext",
6
6
  "lib": ["ESNext"],
7
7
  "types": [],
8
8
  "experimentalDecorators": true,
9
- "moduleResolution": "node",
9
+ "moduleResolution": "NodeNext",
10
10
  "noEmit": true,
11
11
  "noEmitOnError": false,
12
12
  "baseUrl": "./",