@girs/vgpg-1 1.0.0-3.0.0-beta.12

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 ADDED
@@ -0,0 +1,33 @@
1
+
2
+ # Vgpg-1
3
+
4
+ GJS TypeScript type definitions for Vgpg-1, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gjs) v3.0.0-beta.12.
5
+
6
+ VDA implementation using GDA as backend to connect to PostgreSQL databases
7
+
8
+ ## Install
9
+
10
+ To use this type definitions, install them with NPM like this:
11
+ ```bash
12
+ npm install @girs/vgpg-1
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ You can import this package into your project like this:
18
+ ```ts
19
+ import Vgpg from '@girs/vgpg-1';
20
+ ```
21
+
22
+ Or if you prefer CommonJS, you can also use this:
23
+ ```ts
24
+ const Vgpg = require('@girs/vgpg-1');
25
+ ```
26
+
27
+ If you use [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules), you can also import this module like you would do this in JavaScript:
28
+
29
+ ```ts
30
+ import Vgpg from 'gi://Vgpg?version=1';
31
+ ```
32
+
33
+ Depending on your project configuration, it is recommended to use a bundler like [esbuild](https://esbuild.github.io/). You can find examples using different bundlers [here](https://github.com/gjsify/ts-for-gir/tree/main/examples).
package/package.json ADDED
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "@girs/vgpg-1",
3
+ "version": "1.0.0-3.0.0-beta.12",
4
+ "description": "GJS TypeScript type definitions for Vgpg-1, generated from library version 1.0.0",
5
+ "type": "module",
6
+ "module": "vgpg-1.js",
7
+ "main": "vgpg-1.js",
8
+ "typedoc": {
9
+ "entryPoint": "./vgpg-1.d.ts",
10
+ "readmeFile": "./README.md",
11
+ "displayName": "Vgpg-1",
12
+ "tsconfig": "./tsconfig.doc.json"
13
+ },
14
+ "exports": {
15
+ ".": {
16
+ "import": {
17
+ "types": "./vgpg-1.d.ts",
18
+ "default": "./vgpg-1.js"
19
+ },
20
+ "require": {
21
+ "types": "./vgpg-1.d.cts",
22
+ "default": "./vgpg-1.cjs"
23
+ }
24
+ }
25
+ },
26
+ "scripts": {
27
+ "test": "yarn test:esm && yarn test:cjs",
28
+ "test:esm": "tsc --noEmit vgpg-1.d.ts",
29
+ "test:cjs": "tsc --noEmit vgpg-1.d.cts"
30
+ },
31
+ "dependencies": {
32
+ "@girs/gcalc-2": "^2.0.0-3.0.0-beta.12",
33
+ "@girs/gee-0.8": "^0.8.0-3.0.0-beta.12",
34
+ "@girs/gio-2.0": "^2.75.1-3.0.0-beta.12",
35
+ "@girs/glib-2.0": "^2.75.1-3.0.0-beta.12",
36
+ "@girs/gobject-2.0": "^2.75.1-3.0.0-beta.12",
37
+ "@girs/gxml-0.20": "^0.20.0-3.0.0-beta.12",
38
+ "@girs/json-1.0": "^1.7.1-3.0.0-beta.12",
39
+ "@girs/libxml2-2.0": "^2.0.0-3.0.0-beta.12",
40
+ "@girs/vda-1": "^1.0.0-3.0.0-beta.12",
41
+ "@girs/vgda-1": "^1.0.0-3.0.0-beta.12"
42
+ },
43
+ "devDependencies": {
44
+ "typescript": "^*"
45
+ },
46
+ "keywords": [
47
+ "Gir",
48
+ "TypeScript",
49
+ "Vgpg-1"
50
+ ],
51
+ "author": "ts-for-gir",
52
+ "license": "Apache-2.0",
53
+ "repository": {
54
+ "type": "git",
55
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
56
+ },
57
+ "bugs": {
58
+ "url": "https://github.com/gjsify/ts-for-gir/issues"
59
+ },
60
+ "homepage": "https://github.com/gjsify/ts-for-gir#readme"
61
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "compilerOptions": {
3
+ // General settings for code interpretation
4
+ "target": "ESNext",
5
+ "module": "ESNext",
6
+ "experimentalDecorators": true,
7
+ "moduleResolution": "node",
8
+ "noEmit": true,
9
+ "noEmitOnError": false,
10
+ "baseUrl": "./",
11
+ "rootDir": ".",
12
+ // General settings for code generation
13
+ "removeComments": false,
14
+ "inlineSourceMap": false,
15
+ "inlineSources": false,
16
+ "newLine": "LF"
17
+ },
18
+ "include": ["./vgpg-1.d.ts"]
19
+ }
package/vgpg-1.cjs ADDED
@@ -0,0 +1,9 @@
1
+
2
+
3
+ imports.gi.versions.Vgpg = '1'
4
+ const Vgpg = imports.gi.Vgpg;
5
+
6
+ module.exports = Vgpg;
7
+
8
+
9
+
package/vgpg-1.d.cts ADDED
@@ -0,0 +1,95 @@
1
+
2
+ /*
3
+ * Type Definitions for Gjs (https://gjs.guide/)
4
+ *
5
+ * These type definitions are automatically generated, do not edit them by hand.
6
+ * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gjs
7
+ */
8
+ /**
9
+ * Vgpg-1
10
+ */
11
+
12
+ import type Vda from '@girs/vda-1';
13
+ import type GCalc from '@girs/gcalc-2';
14
+ import type Gio from '@girs/gio-2.0';
15
+ import type GObject from '@girs/gobject-2.0';
16
+ import type GLib from '@girs/glib-2.0';
17
+ import type Gee from '@girs/gee-0.8';
18
+ import type Json from '@girs/json-1.0';
19
+ import type GXml from '@girs/gxml-0.20';
20
+ import type libxml2 from '@girs/libxml2-2.0';
21
+ import type Vgda from '@girs/vgda-1';
22
+
23
+ export module Connection {
24
+
25
+ // Constructor properties interface
26
+
27
+ export interface ConstructorProperties extends Vgda.GProvider.ConstructorProperties {
28
+ }
29
+
30
+ }
31
+
32
+ export interface Connection {
33
+
34
+ // Owm methods of Vgpg-1.Vgpg.Connection
35
+
36
+ current_user(): Vda.Role | null
37
+
38
+ // Class property signals of Vgpg-1.Vgpg.Connection
39
+
40
+ connect(sigName: string, callback: (...args: any[]) => void): number
41
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
42
+ emit(sigName: string, ...args: any[]): void
43
+ disconnect(id: number): void
44
+ }
45
+
46
+ export class Connection extends Vgda.GProvider {
47
+
48
+ // Own properties of Vgpg-1.Vgpg.Connection
49
+
50
+ static name: string
51
+ static $gtype: GObject.GType<Connection>
52
+
53
+ // Constructors of Vgpg-1.Vgpg.Connection
54
+
55
+ constructor(config?: Connection.ConstructorProperties)
56
+ constructor()
57
+ static new(): Connection
58
+
59
+ // Overloads of new
60
+
61
+ static new(): Vgda.GProvider
62
+ _init(config?: Connection.ConstructorProperties): void
63
+ }
64
+
65
+ export interface ConnectionClass {
66
+ }
67
+
68
+ export abstract class ConnectionClass {
69
+
70
+ // Own properties of Vgpg-1.Vgpg.ConnectionClass
71
+
72
+ static name: string
73
+ }
74
+
75
+ export interface ConnectionPrivate {
76
+ }
77
+
78
+ export class ConnectionPrivate {
79
+
80
+ // Own properties of Vgpg-1.Vgpg.ConnectionPrivate
81
+
82
+ static name: string
83
+ }
84
+
85
+ /**
86
+ * Name of the imported GIR library
87
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
88
+ */
89
+ export const __name__: string
90
+ /**
91
+ * Version of the imported GIR library
92
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
93
+ */
94
+ export const __version__: string
95
+ // END
package/vgpg-1.d.ts ADDED
@@ -0,0 +1,100 @@
1
+
2
+ /*
3
+ * Type Definitions for Gjs (https://gjs.guide/)
4
+ *
5
+ * These type definitions are automatically generated, do not edit them by hand.
6
+ * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gjs
7
+ */
8
+ /**
9
+ * Vgpg-1
10
+ */
11
+
12
+ import type Vda from '@girs/vda-1';
13
+ import type GCalc from '@girs/gcalc-2';
14
+ import type Gio from '@girs/gio-2.0';
15
+ import type GObject from '@girs/gobject-2.0';
16
+ import type GLib from '@girs/glib-2.0';
17
+ import type Gee from '@girs/gee-0.8';
18
+ import type Json from '@girs/json-1.0';
19
+ import type GXml from '@girs/gxml-0.20';
20
+ import type libxml2 from '@girs/libxml2-2.0';
21
+ import type Vgda from '@girs/vgda-1';
22
+
23
+ export namespace Vgpg {
24
+
25
+ module Connection {
26
+
27
+ // Constructor properties interface
28
+
29
+ interface ConstructorProperties extends Vgda.GProvider.ConstructorProperties {
30
+ }
31
+
32
+ }
33
+
34
+ interface Connection {
35
+
36
+ // Owm methods of Vgpg-1.Vgpg.Connection
37
+
38
+ current_user(): Vda.Role | null
39
+
40
+ // Class property signals of Vgpg-1.Vgpg.Connection
41
+
42
+ connect(sigName: string, callback: (...args: any[]) => void): number
43
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
44
+ emit(sigName: string, ...args: any[]): void
45
+ disconnect(id: number): void
46
+ }
47
+
48
+ class Connection extends Vgda.GProvider {
49
+
50
+ // Own properties of Vgpg-1.Vgpg.Connection
51
+
52
+ static name: string
53
+ static $gtype: GObject.GType<Connection>
54
+
55
+ // Constructors of Vgpg-1.Vgpg.Connection
56
+
57
+ constructor(config?: Connection.ConstructorProperties)
58
+ constructor()
59
+ static new(): Connection
60
+
61
+ // Overloads of new
62
+
63
+ static new(): Vgda.GProvider
64
+ _init(config?: Connection.ConstructorProperties): void
65
+ }
66
+
67
+ interface ConnectionClass {
68
+ }
69
+
70
+ abstract class ConnectionClass {
71
+
72
+ // Own properties of Vgpg-1.Vgpg.ConnectionClass
73
+
74
+ static name: string
75
+ }
76
+
77
+ interface ConnectionPrivate {
78
+ }
79
+
80
+ class ConnectionPrivate {
81
+
82
+ // Own properties of Vgpg-1.Vgpg.ConnectionPrivate
83
+
84
+ static name: string
85
+ }
86
+
87
+ /**
88
+ * Name of the imported GIR library
89
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
90
+ */
91
+ const __name__: string
92
+ /**
93
+ * Version of the imported GIR library
94
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
95
+ */
96
+ const __version__: string
97
+ }
98
+
99
+ export default Vgpg;
100
+ // END
package/vgpg-1.js ADDED
@@ -0,0 +1,8 @@
1
+
2
+
3
+ // @ts-expect-error
4
+ import Vgpg from 'gi://Vgpg?version=1';
5
+ export { Vgpg };
6
+ export default Vgpg;
7
+
8
+