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