@girs/gvncpulse-1.0 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
+ # GVncPulse-1.0
3
+
4
+ GJS TypeScript type definitions for GVncPulse-1.0, 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
+ A bridge to the Pulse Audio system for VNC. It allows VNC clients to play back audio on the local system
7
+
8
+ ## Install
9
+
10
+ To use this type definitions, install them with NPM like this:
11
+ ```bash
12
+ npm install @girs/gvncpulse-1.0
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ You can import this package into your project like this:
18
+ ```ts
19
+ import GVncPulse from '@girs/gvncpulse-1.0';
20
+ ```
21
+
22
+ Or if you prefer CommonJS, you can also use this:
23
+ ```ts
24
+ const GVncPulse = require('@girs/gvncpulse-1.0');
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 GVncPulse from 'gi://GVncPulse?version=1.0';
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).
@@ -0,0 +1,9 @@
1
+
2
+
3
+ imports.gi.versions.GVncPulse = '1.0'
4
+ const GVncPulse = imports.gi.GVncPulse;
5
+
6
+ module.exports = GVncPulse;
7
+
8
+
9
+
@@ -0,0 +1,113 @@
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
+ * GVncPulse-1.0
10
+ */
11
+
12
+ import type GVnc from '@girs/gvnc-1.0';
13
+ import type Gio from '@girs/gio-2.0';
14
+ import type GObject from '@girs/gobject-2.0';
15
+ import type GLib from '@girs/glib-2.0';
16
+
17
+ export module AudioPulse {
18
+
19
+ // Constructor properties interface
20
+
21
+ export interface ConstructorProperties extends GVnc.Audio.ConstructorProperties, GVnc.BaseAudio.ConstructorProperties {
22
+ }
23
+
24
+ }
25
+
26
+ export interface AudioPulse extends GVnc.Audio {
27
+
28
+ // Own fields of GVncPulse-1.0.GVncPulse.AudioPulse
29
+
30
+ parent: GVnc.BaseAudio & GObject.Object
31
+ priv: any
32
+
33
+ // Class property signals of GVncPulse-1.0.GVncPulse.AudioPulse
34
+
35
+ connect(sigName: string, callback: (...args: any[]) => void): number
36
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
37
+ emit(sigName: string, ...args: any[]): void
38
+ disconnect(id: number): void
39
+ }
40
+
41
+ export class AudioPulse extends GVnc.BaseAudio {
42
+
43
+ // Own properties of GVncPulse-1.0.GVncPulse.AudioPulse
44
+
45
+ static name: string
46
+ static $gtype: GObject.GType<AudioPulse>
47
+
48
+ // Constructors of GVncPulse-1.0.GVncPulse.AudioPulse
49
+
50
+ constructor(config?: AudioPulse.ConstructorProperties)
51
+ /**
52
+ * Create a new VNC audio object able to play
53
+ * audio samples via pulseaudio
54
+ * @constructor
55
+ * @returns the new audio object
56
+ */
57
+ constructor()
58
+ /**
59
+ * Create a new VNC audio object able to play
60
+ * audio samples via pulseaudio
61
+ * @constructor
62
+ * @returns the new audio object
63
+ */
64
+ static new(): AudioPulse
65
+
66
+ // Overloads of new
67
+
68
+ /**
69
+ * Create a new generic VNC audio object, which will emit
70
+ * signals when key audio events occur. Callers can connect
71
+ * to these signals to provide playback facilities.
72
+ * @constructor
73
+ * @returns a new audio object
74
+ */
75
+ static new(): GVnc.BaseAudio
76
+ _init(config?: AudioPulse.ConstructorProperties): void
77
+ }
78
+
79
+ export interface AudioPulseClass {
80
+
81
+ // Own fields of GVncPulse-1.0.GVncPulse.AudioPulseClass
82
+
83
+ parent_class: GVnc.BaseAudioClass
84
+ }
85
+
86
+ export abstract class AudioPulseClass {
87
+
88
+ // Own properties of GVncPulse-1.0.GVncPulse.AudioPulseClass
89
+
90
+ static name: string
91
+ }
92
+
93
+ export interface AudioPulsePrivate {
94
+ }
95
+
96
+ export class AudioPulsePrivate {
97
+
98
+ // Own properties of GVncPulse-1.0.GVncPulse.AudioPulsePrivate
99
+
100
+ static name: string
101
+ }
102
+
103
+ /**
104
+ * Name of the imported GIR library
105
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
106
+ */
107
+ export const __name__: string
108
+ /**
109
+ * Version of the imported GIR library
110
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
111
+ */
112
+ export const __version__: string
113
+ // END
@@ -0,0 +1,118 @@
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
+ * GVncPulse-1.0
10
+ */
11
+
12
+ import type GVnc from '@girs/gvnc-1.0';
13
+ import type Gio from '@girs/gio-2.0';
14
+ import type GObject from '@girs/gobject-2.0';
15
+ import type GLib from '@girs/glib-2.0';
16
+
17
+ export namespace GVncPulse {
18
+
19
+ module AudioPulse {
20
+
21
+ // Constructor properties interface
22
+
23
+ interface ConstructorProperties extends GVnc.Audio.ConstructorProperties, GVnc.BaseAudio.ConstructorProperties {
24
+ }
25
+
26
+ }
27
+
28
+ interface AudioPulse extends GVnc.Audio {
29
+
30
+ // Own fields of GVncPulse-1.0.GVncPulse.AudioPulse
31
+
32
+ parent: GVnc.BaseAudio & GObject.Object
33
+ priv: any
34
+
35
+ // Class property signals of GVncPulse-1.0.GVncPulse.AudioPulse
36
+
37
+ connect(sigName: string, callback: (...args: any[]) => void): number
38
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
39
+ emit(sigName: string, ...args: any[]): void
40
+ disconnect(id: number): void
41
+ }
42
+
43
+ class AudioPulse extends GVnc.BaseAudio {
44
+
45
+ // Own properties of GVncPulse-1.0.GVncPulse.AudioPulse
46
+
47
+ static name: string
48
+ static $gtype: GObject.GType<AudioPulse>
49
+
50
+ // Constructors of GVncPulse-1.0.GVncPulse.AudioPulse
51
+
52
+ constructor(config?: AudioPulse.ConstructorProperties)
53
+ /**
54
+ * Create a new VNC audio object able to play
55
+ * audio samples via pulseaudio
56
+ * @constructor
57
+ * @returns the new audio object
58
+ */
59
+ constructor()
60
+ /**
61
+ * Create a new VNC audio object able to play
62
+ * audio samples via pulseaudio
63
+ * @constructor
64
+ * @returns the new audio object
65
+ */
66
+ static new(): AudioPulse
67
+
68
+ // Overloads of new
69
+
70
+ /**
71
+ * Create a new generic VNC audio object, which will emit
72
+ * signals when key audio events occur. Callers can connect
73
+ * to these signals to provide playback facilities.
74
+ * @constructor
75
+ * @returns a new audio object
76
+ */
77
+ static new(): GVnc.BaseAudio
78
+ _init(config?: AudioPulse.ConstructorProperties): void
79
+ }
80
+
81
+ interface AudioPulseClass {
82
+
83
+ // Own fields of GVncPulse-1.0.GVncPulse.AudioPulseClass
84
+
85
+ parent_class: GVnc.BaseAudioClass
86
+ }
87
+
88
+ abstract class AudioPulseClass {
89
+
90
+ // Own properties of GVncPulse-1.0.GVncPulse.AudioPulseClass
91
+
92
+ static name: string
93
+ }
94
+
95
+ interface AudioPulsePrivate {
96
+ }
97
+
98
+ class AudioPulsePrivate {
99
+
100
+ // Own properties of GVncPulse-1.0.GVncPulse.AudioPulsePrivate
101
+
102
+ static name: string
103
+ }
104
+
105
+ /**
106
+ * Name of the imported GIR library
107
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
108
+ */
109
+ const __name__: string
110
+ /**
111
+ * Version of the imported GIR library
112
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
113
+ */
114
+ const __version__: string
115
+ }
116
+
117
+ export default GVncPulse;
118
+ // END
@@ -0,0 +1,8 @@
1
+
2
+
3
+ // @ts-expect-error
4
+ import GVncPulse from 'gi://GVncPulse?version=1.0';
5
+ export { GVncPulse };
6
+ export default GVncPulse;
7
+
8
+
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@girs/gvncpulse-1.0",
3
+ "version": "1.0.0-3.0.0-beta.12",
4
+ "description": "GJS TypeScript type definitions for GVncPulse-1.0, generated from library version 1.0.0",
5
+ "type": "module",
6
+ "module": "gvncpulse-1.0.js",
7
+ "main": "gvncpulse-1.0.js",
8
+ "typedoc": {
9
+ "entryPoint": "./gvncpulse-1.0.d.ts",
10
+ "readmeFile": "./README.md",
11
+ "displayName": "GVncPulse-1.0",
12
+ "tsconfig": "./tsconfig.doc.json"
13
+ },
14
+ "exports": {
15
+ ".": {
16
+ "import": {
17
+ "types": "./gvncpulse-1.0.d.ts",
18
+ "default": "./gvncpulse-1.0.js"
19
+ },
20
+ "require": {
21
+ "types": "./gvncpulse-1.0.d.cts",
22
+ "default": "./gvncpulse-1.0.cjs"
23
+ }
24
+ }
25
+ },
26
+ "scripts": {
27
+ "test": "yarn test:esm && yarn test:cjs",
28
+ "test:esm": "tsc --noEmit gvncpulse-1.0.d.ts",
29
+ "test:cjs": "tsc --noEmit gvncpulse-1.0.d.cts"
30
+ },
31
+ "dependencies": {
32
+ "@girs/gio-2.0": "^2.75.1-3.0.0-beta.12",
33
+ "@girs/glib-2.0": "^2.75.1-3.0.0-beta.12",
34
+ "@girs/gobject-2.0": "^2.75.1-3.0.0-beta.12",
35
+ "@girs/gvnc-1.0": "^1.3.1-3.0.0-beta.12"
36
+ },
37
+ "devDependencies": {
38
+ "typescript": "^*"
39
+ },
40
+ "keywords": [
41
+ "Gir",
42
+ "TypeScript",
43
+ "GVncPulse-1.0"
44
+ ],
45
+ "author": "ts-for-gir",
46
+ "license": "Apache-2.0",
47
+ "repository": {
48
+ "type": "git",
49
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
50
+ },
51
+ "bugs": {
52
+ "url": "https://github.com/gjsify/ts-for-gir/issues"
53
+ },
54
+ "homepage": "https://github.com/gjsify/ts-for-gir#readme"
55
+ }
@@ -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": ["./gvncpulse-1.0.d.ts"]
19
+ }