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