@girs/vgda-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
+ # Vgda-1
3
+
4
+ GJS TypeScript type definitions for Vgda-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, suitable to implement new GDA supported implementations
7
+
8
+ ## Install
9
+
10
+ To use this type definitions, install them with NPM like this:
11
+ ```bash
12
+ npm install @girs/vgda-1
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ You can import this package into your project like this:
18
+ ```ts
19
+ import Vgda from '@girs/vgda-1';
20
+ ```
21
+
22
+ Or if you prefer CommonJS, you can also use this:
23
+ ```ts
24
+ const Vgda = require('@girs/vgda-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 Vgda from 'gi://Vgda?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,60 @@
1
+ {
2
+ "name": "@girs/vgda-1",
3
+ "version": "1.0.0-3.0.0-beta.12",
4
+ "description": "GJS TypeScript type definitions for Vgda-1, generated from library version 1.0.0",
5
+ "type": "module",
6
+ "module": "vgda-1.js",
7
+ "main": "vgda-1.js",
8
+ "typedoc": {
9
+ "entryPoint": "./vgda-1.d.ts",
10
+ "readmeFile": "./README.md",
11
+ "displayName": "Vgda-1",
12
+ "tsconfig": "./tsconfig.doc.json"
13
+ },
14
+ "exports": {
15
+ ".": {
16
+ "import": {
17
+ "types": "./vgda-1.d.ts",
18
+ "default": "./vgda-1.js"
19
+ },
20
+ "require": {
21
+ "types": "./vgda-1.d.cts",
22
+ "default": "./vgda-1.cjs"
23
+ }
24
+ }
25
+ },
26
+ "scripts": {
27
+ "test": "yarn test:esm && yarn test:cjs",
28
+ "test:esm": "tsc --noEmit vgda-1.d.ts",
29
+ "test:cjs": "tsc --noEmit vgda-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
+ },
42
+ "devDependencies": {
43
+ "typescript": "^*"
44
+ },
45
+ "keywords": [
46
+ "Gir",
47
+ "TypeScript",
48
+ "Vgda-1"
49
+ ],
50
+ "author": "ts-for-gir",
51
+ "license": "Apache-2.0",
52
+ "repository": {
53
+ "type": "git",
54
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
55
+ },
56
+ "bugs": {
57
+ "url": "https://github.com/gjsify/ts-for-gir/issues"
58
+ },
59
+ "homepage": "https://github.com/gjsify/ts-for-gir#readme"
60
+ }
@@ -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": ["./vgda-1.d.ts"]
19
+ }
package/vgda-1.cjs ADDED
@@ -0,0 +1,9 @@
1
+
2
+
3
+ imports.gi.versions.Vgda = '1'
4
+ const Vgda = imports.gi.Vgda;
5
+
6
+ module.exports = Vgda;
7
+
8
+
9
+
package/vgda-1.d.cts ADDED
@@ -0,0 +1,103 @@
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
+ * Vgda-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
+
22
+ export module GProvider {
23
+
24
+ // Constructor properties interface
25
+
26
+ export interface ConstructorProperties extends Vda.Connection.ConstructorProperties, GObject.Object.ConstructorProperties {
27
+ }
28
+
29
+ }
30
+
31
+ export interface GProvider extends Vda.Connection {
32
+
33
+ // Own fields of Vgda-1.Vgda.GProvider
34
+
35
+ _provider: string | null
36
+ _cnc_string: string | null
37
+
38
+ // Class property signals of Vgda-1.Vgda.GProvider
39
+
40
+ connect(sigName: "notify::status", callback: (($obj: GProvider, pspec: GObject.ParamSpec) => void)): number
41
+ connect_after(sigName: "notify::status", callback: (($obj: GProvider, pspec: GObject.ParamSpec) => void)): number
42
+ emit(sigName: "notify::status", ...args: any[]): void
43
+ connect(sigName: "notify::parameters", callback: (($obj: GProvider, pspec: GObject.ParamSpec) => void)): number
44
+ connect_after(sigName: "notify::parameters", callback: (($obj: GProvider, pspec: GObject.ParamSpec) => void)): number
45
+ emit(sigName: "notify::parameters", ...args: any[]): void
46
+ connect(sigName: "notify::is-opened", callback: (($obj: GProvider, pspec: GObject.ParamSpec) => void)): number
47
+ connect_after(sigName: "notify::is-opened", callback: (($obj: GProvider, pspec: GObject.ParamSpec) => void)): number
48
+ emit(sigName: "notify::is-opened", ...args: any[]): void
49
+ connect(sigName: "notify::connection-string", callback: (($obj: GProvider, pspec: GObject.ParamSpec) => void)): number
50
+ connect_after(sigName: "notify::connection-string", callback: (($obj: GProvider, pspec: GObject.ParamSpec) => void)): number
51
+ emit(sigName: "notify::connection-string", ...args: any[]): void
52
+ connect(sigName: string, callback: (...args: any[]) => void): number
53
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
54
+ emit(sigName: string, ...args: any[]): void
55
+ disconnect(id: number): void
56
+ }
57
+
58
+ export class GProvider extends GObject.Object {
59
+
60
+ // Own properties of Vgda-1.Vgda.GProvider
61
+
62
+ static name: string
63
+ static $gtype: GObject.GType<GProvider>
64
+
65
+ // Constructors of Vgda-1.Vgda.GProvider
66
+
67
+ constructor(config?: GProvider.ConstructorProperties)
68
+ constructor()
69
+ static new(): GProvider
70
+ _init(config?: GProvider.ConstructorProperties): void
71
+ }
72
+
73
+ export interface GProviderClass {
74
+ }
75
+
76
+ export abstract class GProviderClass {
77
+
78
+ // Own properties of Vgda-1.Vgda.GProviderClass
79
+
80
+ static name: string
81
+ }
82
+
83
+ export interface GProviderPrivate {
84
+ }
85
+
86
+ export class GProviderPrivate {
87
+
88
+ // Own properties of Vgda-1.Vgda.GProviderPrivate
89
+
90
+ static name: string
91
+ }
92
+
93
+ /**
94
+ * Name of the imported GIR library
95
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
96
+ */
97
+ export const __name__: string
98
+ /**
99
+ * Version of the imported GIR library
100
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
101
+ */
102
+ export const __version__: string
103
+ // END
package/vgda-1.d.ts ADDED
@@ -0,0 +1,108 @@
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
+ * Vgda-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
+
22
+ export namespace Vgda {
23
+
24
+ module GProvider {
25
+
26
+ // Constructor properties interface
27
+
28
+ interface ConstructorProperties extends Vda.Connection.ConstructorProperties, GObject.Object.ConstructorProperties {
29
+ }
30
+
31
+ }
32
+
33
+ interface GProvider extends Vda.Connection {
34
+
35
+ // Own fields of Vgda-1.Vgda.GProvider
36
+
37
+ _provider: string | null
38
+ _cnc_string: string | null
39
+
40
+ // Class property signals of Vgda-1.Vgda.GProvider
41
+
42
+ connect(sigName: "notify::status", callback: (($obj: GProvider, pspec: GObject.ParamSpec) => void)): number
43
+ connect_after(sigName: "notify::status", callback: (($obj: GProvider, pspec: GObject.ParamSpec) => void)): number
44
+ emit(sigName: "notify::status", ...args: any[]): void
45
+ connect(sigName: "notify::parameters", callback: (($obj: GProvider, pspec: GObject.ParamSpec) => void)): number
46
+ connect_after(sigName: "notify::parameters", callback: (($obj: GProvider, pspec: GObject.ParamSpec) => void)): number
47
+ emit(sigName: "notify::parameters", ...args: any[]): void
48
+ connect(sigName: "notify::is-opened", callback: (($obj: GProvider, pspec: GObject.ParamSpec) => void)): number
49
+ connect_after(sigName: "notify::is-opened", callback: (($obj: GProvider, pspec: GObject.ParamSpec) => void)): number
50
+ emit(sigName: "notify::is-opened", ...args: any[]): void
51
+ connect(sigName: "notify::connection-string", callback: (($obj: GProvider, pspec: GObject.ParamSpec) => void)): number
52
+ connect_after(sigName: "notify::connection-string", callback: (($obj: GProvider, pspec: GObject.ParamSpec) => void)): number
53
+ emit(sigName: "notify::connection-string", ...args: any[]): void
54
+ connect(sigName: string, callback: (...args: any[]) => void): number
55
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
56
+ emit(sigName: string, ...args: any[]): void
57
+ disconnect(id: number): void
58
+ }
59
+
60
+ class GProvider extends GObject.Object {
61
+
62
+ // Own properties of Vgda-1.Vgda.GProvider
63
+
64
+ static name: string
65
+ static $gtype: GObject.GType<GProvider>
66
+
67
+ // Constructors of Vgda-1.Vgda.GProvider
68
+
69
+ constructor(config?: GProvider.ConstructorProperties)
70
+ constructor()
71
+ static new(): GProvider
72
+ _init(config?: GProvider.ConstructorProperties): void
73
+ }
74
+
75
+ interface GProviderClass {
76
+ }
77
+
78
+ abstract class GProviderClass {
79
+
80
+ // Own properties of Vgda-1.Vgda.GProviderClass
81
+
82
+ static name: string
83
+ }
84
+
85
+ interface GProviderPrivate {
86
+ }
87
+
88
+ class GProviderPrivate {
89
+
90
+ // Own properties of Vgda-1.Vgda.GProviderPrivate
91
+
92
+ static name: string
93
+ }
94
+
95
+ /**
96
+ * Name of the imported GIR library
97
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
98
+ */
99
+ const __name__: string
100
+ /**
101
+ * Version of the imported GIR library
102
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
103
+ */
104
+ const __version__: string
105
+ }
106
+
107
+ export default Vgda;
108
+ // END
package/vgda-1.js ADDED
@@ -0,0 +1,8 @@
1
+
2
+
3
+ // @ts-expect-error
4
+ import Vgda from 'gi://Vgda?version=1';
5
+ export { Vgda };
6
+ export default Vgda;
7
+
8
+