@girs/unityextras-7.0 7.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/package.json +55 -0
- package/tsconfig.doc.json +19 -0
- package/unityextras-7.0.cjs +9 -0
- package/unityextras-7.0.d.cts +121 -0
- package/unityextras-7.0.d.ts +126 -0
- package/unityextras-7.0.js +8 -0
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
# UnityExtras-7.0
|
|
3
|
+
|
|
4
|
+
GJS TypeScript type definitions for UnityExtras-7.0, generated from library version 7.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/unityextras-7.0
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
You can import this package into your project like this:
|
|
16
|
+
```ts
|
|
17
|
+
import UnityExtras from '@girs/unityextras-7.0';
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Or if you prefer CommonJS, you can also use this:
|
|
21
|
+
```ts
|
|
22
|
+
const UnityExtras = require('@girs/unityextras-7.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 UnityExtras from 'gi://UnityExtras?version=7.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/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@girs/unityextras-7.0",
|
|
3
|
+
"version": "7.0.0-3.0.0-beta.12",
|
|
4
|
+
"description": "GJS TypeScript type definitions for UnityExtras-7.0, generated from library version 7.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "unityextras-7.0.js",
|
|
7
|
+
"main": "unityextras-7.0.js",
|
|
8
|
+
"typedoc": {
|
|
9
|
+
"entryPoint": "./unityextras-7.0.d.ts",
|
|
10
|
+
"readmeFile": "./README.md",
|
|
11
|
+
"displayName": "UnityExtras-7.0",
|
|
12
|
+
"tsconfig": "./tsconfig.doc.json"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": {
|
|
17
|
+
"types": "./unityextras-7.0.d.ts",
|
|
18
|
+
"default": "./unityextras-7.0.js"
|
|
19
|
+
},
|
|
20
|
+
"require": {
|
|
21
|
+
"types": "./unityextras-7.0.d.cts",
|
|
22
|
+
"default": "./unityextras-7.0.cjs"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"test": "yarn test:esm && yarn test:cjs",
|
|
28
|
+
"test:esm": "tsc --noEmit unityextras-7.0.d.ts",
|
|
29
|
+
"test:cjs": "tsc --noEmit unityextras-7.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/unity-7.0": "^7.0.0-3.0.0-beta.12"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"typescript": "^*"
|
|
39
|
+
},
|
|
40
|
+
"keywords": [
|
|
41
|
+
"Gir",
|
|
42
|
+
"TypeScript",
|
|
43
|
+
"UnityExtras-7.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": ["./unityextras-7.0.d.ts"]
|
|
19
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
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
|
+
* UnityExtras-7.0
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type GLib from '@girs/glib-2.0';
|
|
13
|
+
import type Gio from '@girs/gio-2.0';
|
|
14
|
+
import type GObject from '@girs/gobject-2.0';
|
|
15
|
+
import type Unity from '@girs/unity-7.0';
|
|
16
|
+
|
|
17
|
+
export function show_in_folder<Z = unknown>(uri: string | null, _callback_?: Gio.AsyncReadyCallback<Z> | null): void
|
|
18
|
+
export function show_in_folder_finish(_res_: Gio.AsyncResult): void
|
|
19
|
+
export function dbus_name_has_owner(name: string | null): boolean
|
|
20
|
+
export function dbus_own_name(name: string | null, scope_creation_cb: CreateScopeCallback): Gio.Application | null
|
|
21
|
+
export interface CreateScopeCallback {
|
|
22
|
+
(): void
|
|
23
|
+
}
|
|
24
|
+
export module PreviewPlayer {
|
|
25
|
+
|
|
26
|
+
// Signal callback interfaces
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Signal callback interface for `progress`
|
|
30
|
+
*/
|
|
31
|
+
export interface ProgressSignalCallback {
|
|
32
|
+
($obj: PreviewPlayer, uri: string | null, state: Unity.MusicPreviewTrackState, progress: number): void
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
// Constructor properties interface
|
|
37
|
+
|
|
38
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface PreviewPlayer {
|
|
44
|
+
|
|
45
|
+
// Owm methods of UnityExtras-7.0.UnityExtras.PreviewPlayer
|
|
46
|
+
|
|
47
|
+
play(uri: string | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
48
|
+
play_finish(_res_: Gio.AsyncResult): void
|
|
49
|
+
pause(_callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
50
|
+
pause_finish(_res_: Gio.AsyncResult): void
|
|
51
|
+
pause_resume(_callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
52
|
+
pause_resume_finish(_res_: Gio.AsyncResult): void
|
|
53
|
+
resume(_callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
54
|
+
resume_finish(_res_: Gio.AsyncResult): void
|
|
55
|
+
stop(_callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
56
|
+
stop_finish(_res_: Gio.AsyncResult): void
|
|
57
|
+
close(_callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
58
|
+
close_finish(_res_: Gio.AsyncResult): void
|
|
59
|
+
video_properties(uri: string | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
60
|
+
video_properties_finish(_res_: Gio.AsyncResult): GLib.HashTable
|
|
61
|
+
|
|
62
|
+
// Own signals of UnityExtras-7.0.UnityExtras.PreviewPlayer
|
|
63
|
+
|
|
64
|
+
connect(sigName: "progress", callback: PreviewPlayer.ProgressSignalCallback): number
|
|
65
|
+
connect_after(sigName: "progress", callback: PreviewPlayer.ProgressSignalCallback): number
|
|
66
|
+
emit(sigName: "progress", uri: string | null, state: Unity.MusicPreviewTrackState, progress: number, ...args: any[]): void
|
|
67
|
+
|
|
68
|
+
// Class property signals of UnityExtras-7.0.UnityExtras.PreviewPlayer
|
|
69
|
+
|
|
70
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
71
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
72
|
+
emit(sigName: string, ...args: any[]): void
|
|
73
|
+
disconnect(id: number): void
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export class PreviewPlayer extends GObject.Object {
|
|
77
|
+
|
|
78
|
+
// Own properties of UnityExtras-7.0.UnityExtras.PreviewPlayer
|
|
79
|
+
|
|
80
|
+
static name: string
|
|
81
|
+
static $gtype: GObject.GType<PreviewPlayer>
|
|
82
|
+
|
|
83
|
+
// Constructors of UnityExtras-7.0.UnityExtras.PreviewPlayer
|
|
84
|
+
|
|
85
|
+
constructor(config?: PreviewPlayer.ConstructorProperties)
|
|
86
|
+
constructor()
|
|
87
|
+
static new(): PreviewPlayer
|
|
88
|
+
_init(config?: PreviewPlayer.ConstructorProperties): void
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface PreviewPlayerClass {
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export abstract class PreviewPlayerClass {
|
|
95
|
+
|
|
96
|
+
// Own properties of UnityExtras-7.0.UnityExtras.PreviewPlayerClass
|
|
97
|
+
|
|
98
|
+
static name: string
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface PreviewPlayerPrivate {
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export class PreviewPlayerPrivate {
|
|
105
|
+
|
|
106
|
+
// Own properties of UnityExtras-7.0.UnityExtras.PreviewPlayerPrivate
|
|
107
|
+
|
|
108
|
+
static name: string
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Name of the imported GIR library
|
|
113
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
114
|
+
*/
|
|
115
|
+
export const __name__: string
|
|
116
|
+
/**
|
|
117
|
+
* Version of the imported GIR library
|
|
118
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
119
|
+
*/
|
|
120
|
+
export const __version__: string
|
|
121
|
+
// END
|
|
@@ -0,0 +1,126 @@
|
|
|
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
|
+
* UnityExtras-7.0
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type GLib from '@girs/glib-2.0';
|
|
13
|
+
import type Gio from '@girs/gio-2.0';
|
|
14
|
+
import type GObject from '@girs/gobject-2.0';
|
|
15
|
+
import type Unity from '@girs/unity-7.0';
|
|
16
|
+
|
|
17
|
+
export namespace UnityExtras {
|
|
18
|
+
|
|
19
|
+
function show_in_folder<Z = unknown>(uri: string | null, _callback_?: Gio.AsyncReadyCallback<Z> | null): void
|
|
20
|
+
function show_in_folder_finish(_res_: Gio.AsyncResult): void
|
|
21
|
+
function dbus_name_has_owner(name: string | null): boolean
|
|
22
|
+
function dbus_own_name(name: string | null, scope_creation_cb: CreateScopeCallback): Gio.Application | null
|
|
23
|
+
interface CreateScopeCallback {
|
|
24
|
+
(): void
|
|
25
|
+
}
|
|
26
|
+
module PreviewPlayer {
|
|
27
|
+
|
|
28
|
+
// Signal callback interfaces
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Signal callback interface for `progress`
|
|
32
|
+
*/
|
|
33
|
+
interface ProgressSignalCallback {
|
|
34
|
+
($obj: PreviewPlayer, uri: string | null, state: Unity.MusicPreviewTrackState, progress: number): void
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
// Constructor properties interface
|
|
39
|
+
|
|
40
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
interface PreviewPlayer {
|
|
46
|
+
|
|
47
|
+
// Owm methods of UnityExtras-7.0.UnityExtras.PreviewPlayer
|
|
48
|
+
|
|
49
|
+
play(uri: string | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
50
|
+
play_finish(_res_: Gio.AsyncResult): void
|
|
51
|
+
pause(_callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
52
|
+
pause_finish(_res_: Gio.AsyncResult): void
|
|
53
|
+
pause_resume(_callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
54
|
+
pause_resume_finish(_res_: Gio.AsyncResult): void
|
|
55
|
+
resume(_callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
56
|
+
resume_finish(_res_: Gio.AsyncResult): void
|
|
57
|
+
stop(_callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
58
|
+
stop_finish(_res_: Gio.AsyncResult): void
|
|
59
|
+
close(_callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
60
|
+
close_finish(_res_: Gio.AsyncResult): void
|
|
61
|
+
video_properties(uri: string | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
62
|
+
video_properties_finish(_res_: Gio.AsyncResult): GLib.HashTable
|
|
63
|
+
|
|
64
|
+
// Own signals of UnityExtras-7.0.UnityExtras.PreviewPlayer
|
|
65
|
+
|
|
66
|
+
connect(sigName: "progress", callback: PreviewPlayer.ProgressSignalCallback): number
|
|
67
|
+
connect_after(sigName: "progress", callback: PreviewPlayer.ProgressSignalCallback): number
|
|
68
|
+
emit(sigName: "progress", uri: string | null, state: Unity.MusicPreviewTrackState, progress: number, ...args: any[]): void
|
|
69
|
+
|
|
70
|
+
// Class property signals of UnityExtras-7.0.UnityExtras.PreviewPlayer
|
|
71
|
+
|
|
72
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
73
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
74
|
+
emit(sigName: string, ...args: any[]): void
|
|
75
|
+
disconnect(id: number): void
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
class PreviewPlayer extends GObject.Object {
|
|
79
|
+
|
|
80
|
+
// Own properties of UnityExtras-7.0.UnityExtras.PreviewPlayer
|
|
81
|
+
|
|
82
|
+
static name: string
|
|
83
|
+
static $gtype: GObject.GType<PreviewPlayer>
|
|
84
|
+
|
|
85
|
+
// Constructors of UnityExtras-7.0.UnityExtras.PreviewPlayer
|
|
86
|
+
|
|
87
|
+
constructor(config?: PreviewPlayer.ConstructorProperties)
|
|
88
|
+
constructor()
|
|
89
|
+
static new(): PreviewPlayer
|
|
90
|
+
_init(config?: PreviewPlayer.ConstructorProperties): void
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
interface PreviewPlayerClass {
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
abstract class PreviewPlayerClass {
|
|
97
|
+
|
|
98
|
+
// Own properties of UnityExtras-7.0.UnityExtras.PreviewPlayerClass
|
|
99
|
+
|
|
100
|
+
static name: string
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
interface PreviewPlayerPrivate {
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
class PreviewPlayerPrivate {
|
|
107
|
+
|
|
108
|
+
// Own properties of UnityExtras-7.0.UnityExtras.PreviewPlayerPrivate
|
|
109
|
+
|
|
110
|
+
static name: string
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Name of the imported GIR library
|
|
115
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
116
|
+
*/
|
|
117
|
+
const __name__: string
|
|
118
|
+
/**
|
|
119
|
+
* Version of the imported GIR library
|
|
120
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
121
|
+
*/
|
|
122
|
+
const __version__: string
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export default UnityExtras;
|
|
126
|
+
// END
|