@girs/unityextras-7.0 7.0.0-3.3.0 → 7.0.0-4.0.0-beta.2
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 +1 -1
- package/package.json +13 -17
- package/unityextras-7.0-ambient.d.ts +3 -3
- package/unityextras-7.0.d.ts +77 -98
- package/unityextras-7.0.js +0 -4
- package/unityextras-7.0.cjs +0 -11
- package/unityextras-7.0.d.cts +0 -124
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

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