@girs/dbus-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 +31 -0
- package/dbus-1.0.cjs +9 -0
- package/dbus-1.0.d.cts +79 -0
- package/dbus-1.0.d.ts +84 -0
- package/dbus-1.0.js +8 -0
- package/package.json +52 -0
- package/tsconfig.doc.json +19 -0
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
# DBus-1.0
|
|
3
|
+
|
|
4
|
+
GJS TypeScript type definitions for DBus-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
|
+
## Install
|
|
7
|
+
|
|
8
|
+
To use this type definitions, install them with NPM like this:
|
|
9
|
+
```bash
|
|
10
|
+
npm install @girs/dbus-1.0
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
You can import this package into your project like this:
|
|
16
|
+
```ts
|
|
17
|
+
import DBus from '@girs/dbus-1.0';
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Or if you prefer CommonJS, you can also use this:
|
|
21
|
+
```ts
|
|
22
|
+
const DBus = require('@girs/dbus-1.0');
|
|
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 DBus from 'gi://DBus?version=1.0';
|
|
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/dbus-1.0.cjs
ADDED
package/dbus-1.0.d.cts
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
* DBus-1.0
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type GObject from '@girs/gobject-2.0';
|
|
13
|
+
|
|
14
|
+
export enum BusType {
|
|
15
|
+
SESSION,
|
|
16
|
+
SYSTEM,
|
|
17
|
+
STARTER,
|
|
18
|
+
}
|
|
19
|
+
export interface Connection {
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class Connection {
|
|
23
|
+
|
|
24
|
+
// Own properties of DBus-1.0.DBus.Connection
|
|
25
|
+
|
|
26
|
+
static name: string
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface Error {
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class Error {
|
|
33
|
+
|
|
34
|
+
// Own properties of DBus-1.0.DBus.Error
|
|
35
|
+
|
|
36
|
+
static name: string
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface Message {
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export class Message {
|
|
43
|
+
|
|
44
|
+
// Own properties of DBus-1.0.DBus.Message
|
|
45
|
+
|
|
46
|
+
static name: string
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface MessageIter {
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export class MessageIter {
|
|
53
|
+
|
|
54
|
+
// Own properties of DBus-1.0.DBus.MessageIter
|
|
55
|
+
|
|
56
|
+
static name: string
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface PendingCall {
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export class PendingCall {
|
|
63
|
+
|
|
64
|
+
// Own properties of DBus-1.0.DBus.PendingCall
|
|
65
|
+
|
|
66
|
+
static name: string
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Name of the imported GIR library
|
|
71
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
72
|
+
*/
|
|
73
|
+
export const __name__: string
|
|
74
|
+
/**
|
|
75
|
+
* Version of the imported GIR library
|
|
76
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
77
|
+
*/
|
|
78
|
+
export const __version__: string
|
|
79
|
+
// END
|
package/dbus-1.0.d.ts
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
* DBus-1.0
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type GObject from '@girs/gobject-2.0';
|
|
13
|
+
|
|
14
|
+
export namespace DBus {
|
|
15
|
+
|
|
16
|
+
enum BusType {
|
|
17
|
+
SESSION,
|
|
18
|
+
SYSTEM,
|
|
19
|
+
STARTER,
|
|
20
|
+
}
|
|
21
|
+
interface Connection {
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
class Connection {
|
|
25
|
+
|
|
26
|
+
// Own properties of DBus-1.0.DBus.Connection
|
|
27
|
+
|
|
28
|
+
static name: string
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface Error {
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
class Error {
|
|
35
|
+
|
|
36
|
+
// Own properties of DBus-1.0.DBus.Error
|
|
37
|
+
|
|
38
|
+
static name: string
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface Message {
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
class Message {
|
|
45
|
+
|
|
46
|
+
// Own properties of DBus-1.0.DBus.Message
|
|
47
|
+
|
|
48
|
+
static name: string
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
interface MessageIter {
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
class MessageIter {
|
|
55
|
+
|
|
56
|
+
// Own properties of DBus-1.0.DBus.MessageIter
|
|
57
|
+
|
|
58
|
+
static name: string
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
interface PendingCall {
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
class PendingCall {
|
|
65
|
+
|
|
66
|
+
// Own properties of DBus-1.0.DBus.PendingCall
|
|
67
|
+
|
|
68
|
+
static name: string
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Name of the imported GIR library
|
|
73
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
74
|
+
*/
|
|
75
|
+
const __name__: string
|
|
76
|
+
/**
|
|
77
|
+
* Version of the imported GIR library
|
|
78
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
79
|
+
*/
|
|
80
|
+
const __version__: string
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export default DBus;
|
|
84
|
+
// END
|
package/dbus-1.0.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@girs/dbus-1.0",
|
|
3
|
+
"version": "1.0.0-3.0.0-beta.12",
|
|
4
|
+
"description": "GJS TypeScript type definitions for DBus-1.0, generated from library version 1.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "dbus-1.0.js",
|
|
7
|
+
"main": "dbus-1.0.js",
|
|
8
|
+
"typedoc": {
|
|
9
|
+
"entryPoint": "./dbus-1.0.d.ts",
|
|
10
|
+
"readmeFile": "./README.md",
|
|
11
|
+
"displayName": "DBus-1.0",
|
|
12
|
+
"tsconfig": "./tsconfig.doc.json"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": {
|
|
17
|
+
"types": "./dbus-1.0.d.ts",
|
|
18
|
+
"default": "./dbus-1.0.js"
|
|
19
|
+
},
|
|
20
|
+
"require": {
|
|
21
|
+
"types": "./dbus-1.0.d.cts",
|
|
22
|
+
"default": "./dbus-1.0.cjs"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"test": "yarn test:esm && yarn test:cjs",
|
|
28
|
+
"test:esm": "tsc --noEmit dbus-1.0.d.ts",
|
|
29
|
+
"test:cjs": "tsc --noEmit dbus-1.0.d.cts"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@girs/gobject-2.0": "^2.75.1-3.0.0-beta.12"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"typescript": "^*"
|
|
36
|
+
},
|
|
37
|
+
"keywords": [
|
|
38
|
+
"Gir",
|
|
39
|
+
"TypeScript",
|
|
40
|
+
"DBus-1.0"
|
|
41
|
+
],
|
|
42
|
+
"author": "ts-for-gir",
|
|
43
|
+
"license": "Apache-2.0",
|
|
44
|
+
"repository": {
|
|
45
|
+
"type": "git",
|
|
46
|
+
"url": "git+https://github.com/gjsify/ts-for-gir.git"
|
|
47
|
+
},
|
|
48
|
+
"bugs": {
|
|
49
|
+
"url": "https://github.com/gjsify/ts-for-gir/issues"
|
|
50
|
+
},
|
|
51
|
+
"homepage": "https://github.com/gjsify/ts-for-gir#readme"
|
|
52
|
+
}
|
|
@@ -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": ["./dbus-1.0.d.ts"]
|
|
19
|
+
}
|