@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 CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/unityextras-7.0)
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) v3.3.0.
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.3.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
- "import": {
19
- "types": "./unityextras-7.0.d.ts",
20
- "default": "./unityextras-7.0.js"
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": "yarn test:esm && yarn test:cjs",
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.78.0-3.3.0",
35
- "@girs/gjs": "^3.3.0",
36
- "@girs/glib-2.0": "^2.78.0-3.3.0",
37
- "@girs/gobject-2.0": "^2.78.0-3.3.0",
38
- "@girs/unity-7.0": "^7.0.0-3.3.0"
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 UnityExtras70 from '@girs/unityextras-7.0';
4
- export default UnityExtras70;
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 '@girs/unityextras-7.0';
8
+ import UnityExtras70 from 'gi://UnityExtras?version=7.0';
9
9
  export default UnityExtras70;
10
10
  }
11
11
 
@@ -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
- import './unityextras-7.0-import.d.ts';
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<Z = unknown>(uri: string, _callback_?: Gio.AsyncReadyCallback<Z> | null): void
23
- function show_in_folder_finish(_res_: Gio.AsyncResult): void
24
- function dbus_name_has_owner(name: string): boolean
25
- function dbus_own_name(name: string, scope_creation_cb: CreateScopeCallback): Gio.Application | null
26
- interface CreateScopeCallback {
27
- (): void
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
- // Constructor properties interface
37
+ // Constructor properties interface
42
38
 
43
- interface ConstructorProperties extends GObject.Object.ConstructorProperties {
39
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
44
40
  }
45
41
 
46
- }
47
-
48
- interface PreviewPlayer {
49
-
50
- // Owm methods of UnityExtras-7.0.UnityExtras.PreviewPlayer
51
-
52
- play(uri: string, _callback_?: Gio.AsyncReadyCallback<this> | null): void
53
- play_finish(_res_: Gio.AsyncResult): void
54
- pause(_callback_?: Gio.AsyncReadyCallback<this> | null): void
55
- pause_finish(_res_: Gio.AsyncResult): void
56
- pause_resume(_callback_?: Gio.AsyncReadyCallback<this> | null): void
57
- pause_resume_finish(_res_: Gio.AsyncResult): void
58
- resume(_callback_?: Gio.AsyncReadyCallback<this> | null): void
59
- resume_finish(_res_: Gio.AsyncResult): void
60
- stop(_callback_?: Gio.AsyncReadyCallback<this> | null): void
61
- stop_finish(_res_: Gio.AsyncResult): void
62
- close(_callback_?: Gio.AsyncReadyCallback<this> | null): void
63
- close_finish(_res_: Gio.AsyncResult): void
64
- video_properties(uri: string, _callback_?: Gio.AsyncReadyCallback<this> | null): void
65
- video_properties_finish(_res_: Gio.AsyncResult): GLib.HashTable
66
-
67
- // Own signals of UnityExtras-7.0.UnityExtras.PreviewPlayer
68
-
69
- connect(sigName: "progress", callback: PreviewPlayer.ProgressSignalCallback): number
70
- connect_after(sigName: "progress", callback: PreviewPlayer.ProgressSignalCallback): number
71
- emit(sigName: "progress", uri: string, state: Unity.MusicPreviewTrackState, progress: number, ...args: any[]): void
72
-
73
- // Class property signals of UnityExtras-7.0.UnityExtras.PreviewPlayer
74
-
75
- connect(sigName: string, callback: (...args: any[]) => void): number
76
- connect_after(sigName: string, callback: (...args: any[]) => void): number
77
- emit(sigName: string, ...args: any[]): void
78
- disconnect(id: number): void
79
- }
80
-
81
- class PreviewPlayer extends GObject.Object {
82
-
83
- // Own properties of UnityExtras-7.0.UnityExtras.PreviewPlayer
84
-
85
- static name: string
86
- static $gtype: GObject.GType<PreviewPlayer>
87
-
88
- // Constructors of UnityExtras-7.0.UnityExtras.PreviewPlayer
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
- class PreviewPlayerPrivate {
86
+ type PreviewPlayerClass = typeof PreviewPlayer;
87
+ abstract class PreviewPlayerPrivate {
88
+ static $gtype: GObject.GType<PreviewPlayerPrivate>;
110
89
 
111
- // Own properties of UnityExtras-7.0.UnityExtras.PreviewPlayerPrivate
90
+ // Constructors of UnityExtras.PreviewPlayerPrivate
112
91
 
113
- static name: string
114
- }
92
+ _init(...args: any[]): void;
93
+ }
115
94
 
116
- /**
117
- * Name of the imported GIR library
118
- * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
119
- */
120
- const __name__: string
121
- /**
122
- * Version of the imported GIR library
123
- * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
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
@@ -1,10 +1,6 @@
1
1
 
2
-
3
2
  // @ts-expect-error
4
3
  import UnityExtras from 'gi://UnityExtras?version=7.0';
5
4
  export { UnityExtras };
6
5
  export default UnityExtras;
7
6
 
8
-
9
-
10
-
@@ -1,11 +0,0 @@
1
-
2
-
3
- imports.gi.versions.UnityExtras = '7.0'
4
- const UnityExtras = imports.gi.UnityExtras;
5
-
6
- module.exports = UnityExtras;
7
-
8
-
9
-
10
-
11
-
@@ -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