@girs/vgsl-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 +61 -0
- package/tsconfig.doc.json +19 -0
- package/vgsl-1.cjs +9 -0
- package/vgsl-1.d.cts +91 -0
- package/vgsl-1.d.ts +96 -0
- package/vgsl-1.js +8 -0
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
# Vgsl-1
|
|
3
|
+
|
|
4
|
+
GJS TypeScript type definitions for Vgsl-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 SQLite databases
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
To use this type definitions, install them with NPM like this:
|
|
11
|
+
```bash
|
|
12
|
+
npm install @girs/vgsl-1
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
You can import this package into your project like this:
|
|
18
|
+
```ts
|
|
19
|
+
import Vgsl from '@girs/vgsl-1';
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Or if you prefer CommonJS, you can also use this:
|
|
23
|
+
```ts
|
|
24
|
+
const Vgsl = require('@girs/vgsl-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 Vgsl from 'gi://Vgsl?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/vgsl-1",
|
|
3
|
+
"version": "1.0.0-3.0.0-beta.12",
|
|
4
|
+
"description": "GJS TypeScript type definitions for Vgsl-1, generated from library version 1.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "vgsl-1.js",
|
|
7
|
+
"main": "vgsl-1.js",
|
|
8
|
+
"typedoc": {
|
|
9
|
+
"entryPoint": "./vgsl-1.d.ts",
|
|
10
|
+
"readmeFile": "./README.md",
|
|
11
|
+
"displayName": "Vgsl-1",
|
|
12
|
+
"tsconfig": "./tsconfig.doc.json"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": {
|
|
17
|
+
"types": "./vgsl-1.d.ts",
|
|
18
|
+
"default": "./vgsl-1.js"
|
|
19
|
+
},
|
|
20
|
+
"require": {
|
|
21
|
+
"types": "./vgsl-1.d.cts",
|
|
22
|
+
"default": "./vgsl-1.cjs"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"test": "yarn test:esm && yarn test:cjs",
|
|
28
|
+
"test:esm": "tsc --noEmit vgsl-1.d.ts",
|
|
29
|
+
"test:cjs": "tsc --noEmit vgsl-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
|
+
"Vgsl-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": ["./vgsl-1.d.ts"]
|
|
19
|
+
}
|
package/vgsl-1.cjs
ADDED
package/vgsl-1.d.cts
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
* Vgsl-1
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type Vgda from '@girs/vgda-1';
|
|
13
|
+
import type Vda from '@girs/vda-1';
|
|
14
|
+
import type GCalc from '@girs/gcalc-2';
|
|
15
|
+
import type Gio from '@girs/gio-2.0';
|
|
16
|
+
import type GObject from '@girs/gobject-2.0';
|
|
17
|
+
import type GLib from '@girs/glib-2.0';
|
|
18
|
+
import type Gee from '@girs/gee-0.8';
|
|
19
|
+
import type Json from '@girs/json-1.0';
|
|
20
|
+
import type GXml from '@girs/gxml-0.20';
|
|
21
|
+
import type libxml2 from '@girs/libxml2-2.0';
|
|
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
|
+
// Class property signals of Vgsl-1.Vgsl.Connection
|
|
35
|
+
|
|
36
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
37
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
38
|
+
emit(sigName: string, ...args: any[]): void
|
|
39
|
+
disconnect(id: number): void
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export class Connection extends Vgda.GProvider {
|
|
43
|
+
|
|
44
|
+
// Own properties of Vgsl-1.Vgsl.Connection
|
|
45
|
+
|
|
46
|
+
static name: string
|
|
47
|
+
static $gtype: GObject.GType<Connection>
|
|
48
|
+
|
|
49
|
+
// Constructors of Vgsl-1.Vgsl.Connection
|
|
50
|
+
|
|
51
|
+
constructor(config?: Connection.ConstructorProperties)
|
|
52
|
+
constructor()
|
|
53
|
+
static new(): Connection
|
|
54
|
+
|
|
55
|
+
// Overloads of new
|
|
56
|
+
|
|
57
|
+
static new(): Vgda.GProvider
|
|
58
|
+
_init(config?: Connection.ConstructorProperties): void
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface ConnectionClass {
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export abstract class ConnectionClass {
|
|
65
|
+
|
|
66
|
+
// Own properties of Vgsl-1.Vgsl.ConnectionClass
|
|
67
|
+
|
|
68
|
+
static name: string
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface ConnectionPrivate {
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export class ConnectionPrivate {
|
|
75
|
+
|
|
76
|
+
// Own properties of Vgsl-1.Vgsl.ConnectionPrivate
|
|
77
|
+
|
|
78
|
+
static name: string
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Name of the imported GIR library
|
|
83
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
84
|
+
*/
|
|
85
|
+
export const __name__: string
|
|
86
|
+
/**
|
|
87
|
+
* Version of the imported GIR library
|
|
88
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
89
|
+
*/
|
|
90
|
+
export const __version__: string
|
|
91
|
+
// END
|
package/vgsl-1.d.ts
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
* Vgsl-1
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type Vgda from '@girs/vgda-1';
|
|
13
|
+
import type Vda from '@girs/vda-1';
|
|
14
|
+
import type GCalc from '@girs/gcalc-2';
|
|
15
|
+
import type Gio from '@girs/gio-2.0';
|
|
16
|
+
import type GObject from '@girs/gobject-2.0';
|
|
17
|
+
import type GLib from '@girs/glib-2.0';
|
|
18
|
+
import type Gee from '@girs/gee-0.8';
|
|
19
|
+
import type Json from '@girs/json-1.0';
|
|
20
|
+
import type GXml from '@girs/gxml-0.20';
|
|
21
|
+
import type libxml2 from '@girs/libxml2-2.0';
|
|
22
|
+
|
|
23
|
+
export namespace Vgsl {
|
|
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
|
+
// Class property signals of Vgsl-1.Vgsl.Connection
|
|
37
|
+
|
|
38
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
39
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
40
|
+
emit(sigName: string, ...args: any[]): void
|
|
41
|
+
disconnect(id: number): void
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
class Connection extends Vgda.GProvider {
|
|
45
|
+
|
|
46
|
+
// Own properties of Vgsl-1.Vgsl.Connection
|
|
47
|
+
|
|
48
|
+
static name: string
|
|
49
|
+
static $gtype: GObject.GType<Connection>
|
|
50
|
+
|
|
51
|
+
// Constructors of Vgsl-1.Vgsl.Connection
|
|
52
|
+
|
|
53
|
+
constructor(config?: Connection.ConstructorProperties)
|
|
54
|
+
constructor()
|
|
55
|
+
static new(): Connection
|
|
56
|
+
|
|
57
|
+
// Overloads of new
|
|
58
|
+
|
|
59
|
+
static new(): Vgda.GProvider
|
|
60
|
+
_init(config?: Connection.ConstructorProperties): void
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
interface ConnectionClass {
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
abstract class ConnectionClass {
|
|
67
|
+
|
|
68
|
+
// Own properties of Vgsl-1.Vgsl.ConnectionClass
|
|
69
|
+
|
|
70
|
+
static name: string
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
interface ConnectionPrivate {
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
class ConnectionPrivate {
|
|
77
|
+
|
|
78
|
+
// Own properties of Vgsl-1.Vgsl.ConnectionPrivate
|
|
79
|
+
|
|
80
|
+
static name: string
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Name of the imported GIR library
|
|
85
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
86
|
+
*/
|
|
87
|
+
const __name__: string
|
|
88
|
+
/**
|
|
89
|
+
* Version of the imported GIR library
|
|
90
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
91
|
+
*/
|
|
92
|
+
const __version__: string
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export default Vgsl;
|
|
96
|
+
// END
|