@girs/dbusglib-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 +33 -0
- package/dbusglib-1.0.cjs +9 -0
- package/dbusglib-1.0.d.cts +87 -0
- package/dbusglib-1.0.d.ts +92 -0
- package/dbusglib-1.0.js +8 -0
- package/package.json +53 -0
- package/tsconfig.doc.json +19 -0
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
# DBusGLib-1.0
|
|
3
|
+
|
|
4
|
+
GJS TypeScript type definitions for DBusGLib-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
|
+
Initial D-Bus Support (Do not use in new projects, use DBus support included in GLib instead)
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
To use this type definitions, install them with NPM like this:
|
|
11
|
+
```bash
|
|
12
|
+
npm install @girs/dbusglib-1.0
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
You can import this package into your project like this:
|
|
18
|
+
```ts
|
|
19
|
+
import DBusGLib from '@girs/dbusglib-1.0';
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Or if you prefer CommonJS, you can also use this:
|
|
23
|
+
```ts
|
|
24
|
+
const DBusGLib = require('@girs/dbusglib-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 DBusGLib from 'gi://DBusGLib?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).
|
package/dbusglib-1.0.cjs
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
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
|
+
* DBusGLib-1.0
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type GObject from '@girs/gobject-2.0';
|
|
13
|
+
import type GLib from '@girs/glib-2.0';
|
|
14
|
+
|
|
15
|
+
export module Proxy {
|
|
16
|
+
|
|
17
|
+
// Constructor properties interface
|
|
18
|
+
|
|
19
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface Proxy {
|
|
25
|
+
|
|
26
|
+
// Class property signals of DBusGLib-1.0.DBusGLib.Proxy
|
|
27
|
+
|
|
28
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
29
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
30
|
+
emit(sigName: string, ...args: any[]): void
|
|
31
|
+
disconnect(id: number): void
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export class Proxy extends GObject.Object {
|
|
35
|
+
|
|
36
|
+
// Own properties of DBusGLib-1.0.DBusGLib.Proxy
|
|
37
|
+
|
|
38
|
+
static name: string
|
|
39
|
+
static $gtype: GObject.GType<Proxy>
|
|
40
|
+
|
|
41
|
+
// Constructors of DBusGLib-1.0.DBusGLib.Proxy
|
|
42
|
+
|
|
43
|
+
constructor(config?: Proxy.ConstructorProperties)
|
|
44
|
+
_init(config?: Proxy.ConstructorProperties): void
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface Connection {
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export class Connection {
|
|
51
|
+
|
|
52
|
+
// Own properties of DBusGLib-1.0.DBusGLib.Connection
|
|
53
|
+
|
|
54
|
+
static name: string
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface MethodInvocation {
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export class MethodInvocation {
|
|
61
|
+
|
|
62
|
+
// Own properties of DBusGLib-1.0.DBusGLib.MethodInvocation
|
|
63
|
+
|
|
64
|
+
static name: string
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface ProxyClass {
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export class ProxyClass {
|
|
71
|
+
|
|
72
|
+
// Own properties of DBusGLib-1.0.DBusGLib.ProxyClass
|
|
73
|
+
|
|
74
|
+
static name: string
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Name of the imported GIR library
|
|
79
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
80
|
+
*/
|
|
81
|
+
export const __name__: string
|
|
82
|
+
/**
|
|
83
|
+
* Version of the imported GIR library
|
|
84
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
85
|
+
*/
|
|
86
|
+
export const __version__: string
|
|
87
|
+
// END
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
* DBusGLib-1.0
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type GObject from '@girs/gobject-2.0';
|
|
13
|
+
import type GLib from '@girs/glib-2.0';
|
|
14
|
+
|
|
15
|
+
export namespace DBusGLib {
|
|
16
|
+
|
|
17
|
+
module Proxy {
|
|
18
|
+
|
|
19
|
+
// Constructor properties interface
|
|
20
|
+
|
|
21
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface Proxy {
|
|
27
|
+
|
|
28
|
+
// Class property signals of DBusGLib-1.0.DBusGLib.Proxy
|
|
29
|
+
|
|
30
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
31
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
32
|
+
emit(sigName: string, ...args: any[]): void
|
|
33
|
+
disconnect(id: number): void
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
class Proxy extends GObject.Object {
|
|
37
|
+
|
|
38
|
+
// Own properties of DBusGLib-1.0.DBusGLib.Proxy
|
|
39
|
+
|
|
40
|
+
static name: string
|
|
41
|
+
static $gtype: GObject.GType<Proxy>
|
|
42
|
+
|
|
43
|
+
// Constructors of DBusGLib-1.0.DBusGLib.Proxy
|
|
44
|
+
|
|
45
|
+
constructor(config?: Proxy.ConstructorProperties)
|
|
46
|
+
_init(config?: Proxy.ConstructorProperties): void
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
interface Connection {
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
class Connection {
|
|
53
|
+
|
|
54
|
+
// Own properties of DBusGLib-1.0.DBusGLib.Connection
|
|
55
|
+
|
|
56
|
+
static name: string
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
interface MethodInvocation {
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
class MethodInvocation {
|
|
63
|
+
|
|
64
|
+
// Own properties of DBusGLib-1.0.DBusGLib.MethodInvocation
|
|
65
|
+
|
|
66
|
+
static name: string
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
interface ProxyClass {
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
class ProxyClass {
|
|
73
|
+
|
|
74
|
+
// Own properties of DBusGLib-1.0.DBusGLib.ProxyClass
|
|
75
|
+
|
|
76
|
+
static name: string
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Name of the imported GIR library
|
|
81
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
82
|
+
*/
|
|
83
|
+
const __name__: string
|
|
84
|
+
/**
|
|
85
|
+
* Version of the imported GIR library
|
|
86
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
87
|
+
*/
|
|
88
|
+
const __version__: string
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export default DBusGLib;
|
|
92
|
+
// END
|
package/dbusglib-1.0.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@girs/dbusglib-1.0",
|
|
3
|
+
"version": "1.0.0-3.0.0-beta.12",
|
|
4
|
+
"description": "GJS TypeScript type definitions for DBusGLib-1.0, generated from library version 1.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "dbusglib-1.0.js",
|
|
7
|
+
"main": "dbusglib-1.0.js",
|
|
8
|
+
"typedoc": {
|
|
9
|
+
"entryPoint": "./dbusglib-1.0.d.ts",
|
|
10
|
+
"readmeFile": "./README.md",
|
|
11
|
+
"displayName": "DBusGLib-1.0",
|
|
12
|
+
"tsconfig": "./tsconfig.doc.json"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": {
|
|
17
|
+
"types": "./dbusglib-1.0.d.ts",
|
|
18
|
+
"default": "./dbusglib-1.0.js"
|
|
19
|
+
},
|
|
20
|
+
"require": {
|
|
21
|
+
"types": "./dbusglib-1.0.d.cts",
|
|
22
|
+
"default": "./dbusglib-1.0.cjs"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"test": "yarn test:esm && yarn test:cjs",
|
|
28
|
+
"test:esm": "tsc --noEmit dbusglib-1.0.d.ts",
|
|
29
|
+
"test:cjs": "tsc --noEmit dbusglib-1.0.d.cts"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@girs/glib-2.0": "^2.75.1-3.0.0-beta.12",
|
|
33
|
+
"@girs/gobject-2.0": "^2.75.1-3.0.0-beta.12"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"typescript": "^*"
|
|
37
|
+
},
|
|
38
|
+
"keywords": [
|
|
39
|
+
"Gir",
|
|
40
|
+
"TypeScript",
|
|
41
|
+
"DBusGLib-1.0"
|
|
42
|
+
],
|
|
43
|
+
"author": "ts-for-gir",
|
|
44
|
+
"license": "Apache-2.0",
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "git+https://github.com/gjsify/ts-for-gir.git"
|
|
48
|
+
},
|
|
49
|
+
"bugs": {
|
|
50
|
+
"url": "https://github.com/gjsify/ts-for-gir/issues"
|
|
51
|
+
},
|
|
52
|
+
"homepage": "https://github.com/gjsify/ts-for-gir#readme"
|
|
53
|
+
}
|
|
@@ -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": ["./dbusglib-1.0.d.ts"]
|
|
19
|
+
}
|