@girs/geocodeglib-2.0 2.0.0-4.0.0-beta.6 → 2.0.0-4.0.0-beta.8

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.6.
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.8.
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,16 +1,13 @@
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';
@@ -19,6 +16,10 @@ import type GModule from '@girs/gmodule-2.0';
19
16
  import type Json from '@girs/json-1.0';
20
17
 
21
18
  export namespace GeocodeGlib {
19
+ /**
20
+ * GeocodeGlib-2.0
21
+ */
22
+
22
23
  /**
23
24
  * Error codes returned by geocode-glib functions.
24
25
  */
@@ -1427,12 +1428,27 @@ export namespace GeocodeGlib {
1427
1428
 
1428
1429
  // Own virtual methods of GeocodeGlib.Nominatim
1429
1430
 
1431
+ /**
1432
+ * synchronous query function to override network `GET` requests.
1433
+ * @param uri
1434
+ * @param cancellable
1435
+ */
1430
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
+ */
1431
1443
  vfunc_query_async(
1432
1444
  uri: string,
1433
1445
  cancellable?: Gio.Cancellable | null,
1434
1446
  callback?: Gio.AsyncReadyCallback<this> | null,
1435
1447
  ): void;
1448
+ /**
1449
+ * asynchronous finish function for `query_async`.
1450
+ * @param res
1451
+ */
1436
1452
  vfunc_query_finish(res: Gio.AsyncResult): string;
1437
1453
 
1438
1454
  // Inherited methods
@@ -2753,4 +2769,5 @@ export namespace GeocodeGlib {
2753
2769
  }
2754
2770
 
2755
2771
  export default GeocodeGlib;
2772
+
2756
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.6",
3
+ "version": "2.0.0-4.0.0-beta.8",
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,23 +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
31
  "test": "tsc --project tsconfig.json"
27
32
  },
28
33
  "dependencies": {
29
- "@girs/gio-2.0": "^2.80.3-4.0.0-beta.6",
30
- "@girs/gjs": "^4.0.0-beta.6",
31
- "@girs/glib-2.0": "^2.80.3-4.0.0-beta.6",
32
- "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.6",
33
- "@girs/gobject-2.0": "^2.80.3-4.0.0-beta.6",
34
- "@girs/json-1.0": "^1.8.0-4.0.0-beta.6",
35
- "@girs/soup-3.0": "^3.4.4-4.0.0-beta.6"
34
+ "@girs/gio-2.0": "^2.80.2-4.0.0-beta.8",
35
+ "@girs/gjs": "^4.0.0-beta.8",
36
+ "@girs/glib-2.0": "^2.80.2-4.0.0-beta.8",
37
+ "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.8",
38
+ "@girs/gobject-2.0": "^2.80.2-4.0.0-beta.8",
39
+ "@girs/json-1.0": "^1.8.0-4.0.0-beta.8",
40
+ "@girs/soup-3.0": "^3.4.4-4.0.0-beta.8"
36
41
  },
37
42
  "devDependencies": {
38
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": "./",