@girs/metatest-14 14.0.0-3.3.0
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 +104 -0
- package/metatest-14-ambient.d.ts +12 -0
- package/metatest-14-ambient.js +2 -0
- package/metatest-14-import.d.ts +12 -0
- package/metatest-14-import.js +3 -0
- package/metatest-14.cjs +11 -0
- package/metatest-14.d.cts +204 -0
- package/metatest-14.d.ts +209 -0
- package/metatest-14.js +10 -0
- package/package.json +76 -0
- package/tsconfig.json +23 -0
- package/typedoc.json +7 -0
package/README.md
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
|
|
2
|
+
# MetaTest-14
|
|
3
|
+
|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
GJS TypeScript type definitions for MetaTest-14, generated from library version 14.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.3.0.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
To use this type definitions, install them with NPM:
|
|
14
|
+
```bash
|
|
15
|
+
npm install @girs/metatest-14
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
You can import this package into your project like this:
|
|
21
|
+
```ts
|
|
22
|
+
import MetaTest from '@girs/metatest-14';
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Or if you prefer CommonJS, you can also use this:
|
|
26
|
+
```ts
|
|
27
|
+
const MetaTest = require('@girs/metatest-14');
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Ambient Modules
|
|
31
|
+
|
|
32
|
+
You can also use [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) to import this module like you would do this in JavaScript.
|
|
33
|
+
For this you need to include `@girs/metatest-14` or `@girs/metatest-14/ambient` in your `tsconfig` or entry point Typescript file:
|
|
34
|
+
|
|
35
|
+
`index.ts`:
|
|
36
|
+
```ts
|
|
37
|
+
import '@girs/metatest-14'
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
`tsconfig.json`:
|
|
41
|
+
```json
|
|
42
|
+
{
|
|
43
|
+
"compilerOptions": {
|
|
44
|
+
...
|
|
45
|
+
},
|
|
46
|
+
"include": ["@girs/metatest-14"],
|
|
47
|
+
...
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Now you can import the ambient module with TypeScript support:
|
|
52
|
+
|
|
53
|
+
```ts
|
|
54
|
+
import MetaTest from 'gi://MetaTest?version=14';
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Global import
|
|
58
|
+
|
|
59
|
+
You can also import the module with Typescript support using the global `imports.gi` object of GJS.
|
|
60
|
+
For this you need to include `@girs/metatest-14` or `@girs/metatest-14/import` in your `tsconfig` or entry point Typescript file:
|
|
61
|
+
|
|
62
|
+
`index.ts`:
|
|
63
|
+
```ts
|
|
64
|
+
import '@girs/metatest-14'
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
`tsconfig.json`:
|
|
68
|
+
```json
|
|
69
|
+
{
|
|
70
|
+
"compilerOptions": {
|
|
71
|
+
...
|
|
72
|
+
},
|
|
73
|
+
"include": ["@girs/metatest-14"],
|
|
74
|
+
...
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Now you have also type support for this, too:
|
|
79
|
+
|
|
80
|
+
```ts
|
|
81
|
+
const MetaTest = imports.gi.MetaTest;
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
### ESM vs. CommonJS
|
|
86
|
+
|
|
87
|
+
GJS supports two different import syntaxes. The new modern ESM syntax and the old global imports syntax.
|
|
88
|
+
|
|
89
|
+
In TypeScript projects for GJS and GNOME Shell extensions, you have the flexibility to use `ESM` syntax and then decide the import syntax for your bundled file. If your bundler is configured to use `CommonJS`, it will convert to the GJS-specific global imports syntax, like `const moduleName = imports.gi[moduleName]`. This is different from the traditional `require` syntax seen in Node.js. The global imports syntax is chosen because it aligns with the CommonJS format supported by NPM, which is used for the generated type definitions and this package.
|
|
90
|
+
|
|
91
|
+
On the other hand, if you configure your bundler to use ESM, it will retain the ESM import syntax. It's crucial to ensure that your bundler is set up to correctly translate and bundle these imports into either CommonJS or ESM format, depending on your project's requirements.
|
|
92
|
+
|
|
93
|
+
This approach is particularly important due to the `@girs` types, which include both `*.cjs `files, using the GJS global imports syntax, and `*.js` files, which utilize the ESM syntax. By appropriately setting up your bundler, you can control which syntax—CommonJS or ESM—is used in your project. The choice of CommonJS in this context is also due to the similarity between the GJS-specific global imports and CommonJS syntax, allowing for easier management and bundling in these specific types of projects.
|
|
94
|
+
|
|
95
|
+
Since GNOME Shell 45, you should only use ESM, even for GNOME Shell extensions. Before that, extensions had to use the global import syntax, unlike normal GJS applications, where ESM has been available for some time.
|
|
96
|
+
|
|
97
|
+
### Bundle
|
|
98
|
+
|
|
99
|
+
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).
|
|
100
|
+
|
|
101
|
+
## Other packages
|
|
102
|
+
|
|
103
|
+
All existing pre-generated packages can be found on [gjsify/types](https://github.com/gjsify/types).
|
|
104
|
+
|
package/metatest-14.cjs
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
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 './metatest-14-ambient.d.ts';
|
|
10
|
+
import './metatest-14-import.d.ts';
|
|
11
|
+
/**
|
|
12
|
+
* MetaTest-14
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import type xlib from '@girs/xlib-2.0';
|
|
16
|
+
import type xfixes from '@girs/xfixes-4.0';
|
|
17
|
+
import type Mtk from '@girs/mtk-14';
|
|
18
|
+
import type Graphene from '@girs/graphene-1.0';
|
|
19
|
+
import type GObject from '@girs/gobject-2.0';
|
|
20
|
+
import type GLib from '@girs/glib-2.0';
|
|
21
|
+
import type Meta from '@girs/meta-14';
|
|
22
|
+
import type Gio from '@girs/gio-2.0';
|
|
23
|
+
import type GDesktopEnums from '@girs/gdesktopenums-3.0';
|
|
24
|
+
import type CoglPango from '@girs/coglpango-14';
|
|
25
|
+
import type PangoCairo from '@girs/pangocairo-1.0';
|
|
26
|
+
import type cairo from '@girs/cairo-1.0';
|
|
27
|
+
import type Pango from '@girs/pango-1.0';
|
|
28
|
+
import type HarfBuzz from '@girs/harfbuzz-0.0';
|
|
29
|
+
import type freetype2 from '@girs/freetype2-2.0';
|
|
30
|
+
import type Cogl from '@girs/cogl-14';
|
|
31
|
+
import type GL from '@girs/gl-1.0';
|
|
32
|
+
import type Clutter from '@girs/clutter-14';
|
|
33
|
+
import type Atk from '@girs/atk-1.0';
|
|
34
|
+
|
|
35
|
+
export enum ContextTestType {
|
|
36
|
+
HEADLESS,
|
|
37
|
+
VKMS,
|
|
38
|
+
NESTED,
|
|
39
|
+
}
|
|
40
|
+
export enum ContextTestFlag {
|
|
41
|
+
NONE,
|
|
42
|
+
TEST_CLIENT,
|
|
43
|
+
NO_X11,
|
|
44
|
+
}
|
|
45
|
+
export enum TestRunFlags {
|
|
46
|
+
NONE,
|
|
47
|
+
CAN_SKIP,
|
|
48
|
+
}
|
|
49
|
+
export module ContextTest {
|
|
50
|
+
|
|
51
|
+
// Signal callback interfaces
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Signal callback interface for `after-tests`
|
|
55
|
+
*/
|
|
56
|
+
export interface AfterTestsSignalCallback {
|
|
57
|
+
($obj: ContextTest): void
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Signal callback interface for `before-tests`
|
|
62
|
+
*/
|
|
63
|
+
export interface BeforeTestsSignalCallback {
|
|
64
|
+
($obj: ContextTest): void
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Signal callback interface for `run-tests`
|
|
69
|
+
*/
|
|
70
|
+
export interface RunTestsSignalCallback {
|
|
71
|
+
($obj: ContextTest): number
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
// Constructor properties interface
|
|
76
|
+
|
|
77
|
+
export interface ConstructorProperties extends Meta.Context.ConstructorProperties {
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface ContextTest {
|
|
83
|
+
|
|
84
|
+
// Own fields of MetaTest-14.MetaTest.ContextTest
|
|
85
|
+
|
|
86
|
+
parent_instance: Meta.Context & GObject.Object
|
|
87
|
+
|
|
88
|
+
// Owm methods of MetaTest-14.MetaTest.ContextTest
|
|
89
|
+
|
|
90
|
+
run_tests(flags: TestRunFlags): number
|
|
91
|
+
wait_for_x11_display(): void
|
|
92
|
+
|
|
93
|
+
// Own signals of MetaTest-14.MetaTest.ContextTest
|
|
94
|
+
|
|
95
|
+
connect(sigName: "after-tests", callback: ContextTest.AfterTestsSignalCallback): number
|
|
96
|
+
connect_after(sigName: "after-tests", callback: ContextTest.AfterTestsSignalCallback): number
|
|
97
|
+
emit(sigName: "after-tests", ...args: any[]): void
|
|
98
|
+
connect(sigName: "before-tests", callback: ContextTest.BeforeTestsSignalCallback): number
|
|
99
|
+
connect_after(sigName: "before-tests", callback: ContextTest.BeforeTestsSignalCallback): number
|
|
100
|
+
emit(sigName: "before-tests", ...args: any[]): void
|
|
101
|
+
connect(sigName: "run-tests", callback: ContextTest.RunTestsSignalCallback): number
|
|
102
|
+
connect_after(sigName: "run-tests", callback: ContextTest.RunTestsSignalCallback): number
|
|
103
|
+
emit(sigName: "run-tests", ...args: any[]): void
|
|
104
|
+
|
|
105
|
+
// Class property signals of MetaTest-14.MetaTest.ContextTest
|
|
106
|
+
|
|
107
|
+
connect(sigName: "notify::name", callback: (($obj: ContextTest, pspec: GObject.ParamSpec) => void)): number
|
|
108
|
+
connect_after(sigName: "notify::name", callback: (($obj: ContextTest, pspec: GObject.ParamSpec) => void)): number
|
|
109
|
+
emit(sigName: "notify::name", ...args: any[]): void
|
|
110
|
+
connect(sigName: "notify::unsafe-mode", callback: (($obj: ContextTest, pspec: GObject.ParamSpec) => void)): number
|
|
111
|
+
connect_after(sigName: "notify::unsafe-mode", callback: (($obj: ContextTest, pspec: GObject.ParamSpec) => void)): number
|
|
112
|
+
emit(sigName: "notify::unsafe-mode", ...args: any[]): void
|
|
113
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
114
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
115
|
+
emit(sigName: string, ...args: any[]): void
|
|
116
|
+
disconnect(id: number): void
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export class ContextTest extends Meta.Context {
|
|
120
|
+
|
|
121
|
+
// Own properties of MetaTest-14.MetaTest.ContextTest
|
|
122
|
+
|
|
123
|
+
static name: string
|
|
124
|
+
static $gtype: GObject.GType<ContextTest>
|
|
125
|
+
|
|
126
|
+
// Constructors of MetaTest-14.MetaTest.ContextTest
|
|
127
|
+
|
|
128
|
+
constructor(config?: ContextTest.ConstructorProperties)
|
|
129
|
+
_init(config?: ContextTest.ConstructorProperties): void
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export module TestMonitor {
|
|
133
|
+
|
|
134
|
+
// Constructor properties interface
|
|
135
|
+
|
|
136
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export interface TestMonitor {
|
|
142
|
+
|
|
143
|
+
// Owm methods of MetaTest-14.MetaTest.TestMonitor
|
|
144
|
+
|
|
145
|
+
destroy(): void
|
|
146
|
+
|
|
147
|
+
// Class property signals of MetaTest-14.MetaTest.TestMonitor
|
|
148
|
+
|
|
149
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
150
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
151
|
+
emit(sigName: string, ...args: any[]): void
|
|
152
|
+
disconnect(id: number): void
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export class TestMonitor extends GObject.Object {
|
|
156
|
+
|
|
157
|
+
// Own properties of MetaTest-14.MetaTest.TestMonitor
|
|
158
|
+
|
|
159
|
+
static name: string
|
|
160
|
+
static $gtype: GObject.GType<TestMonitor>
|
|
161
|
+
|
|
162
|
+
// Constructors of MetaTest-14.MetaTest.TestMonitor
|
|
163
|
+
|
|
164
|
+
constructor(config?: TestMonitor.ConstructorProperties)
|
|
165
|
+
constructor(context: Meta.Context, width: number, height: number, refresh_rate: number)
|
|
166
|
+
static new(context: Meta.Context, width: number, height: number, refresh_rate: number): TestMonitor
|
|
167
|
+
_init(config?: TestMonitor.ConstructorProperties): void
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export interface ContextTestClass {
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export abstract class ContextTestClass {
|
|
174
|
+
|
|
175
|
+
// Own properties of MetaTest-14.MetaTest.ContextTestClass
|
|
176
|
+
|
|
177
|
+
static name: string
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export interface TestMonitorClass {
|
|
181
|
+
|
|
182
|
+
// Own fields of MetaTest-14.MetaTest.TestMonitorClass
|
|
183
|
+
|
|
184
|
+
parent_class: GObject.ObjectClass
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export abstract class TestMonitorClass {
|
|
188
|
+
|
|
189
|
+
// Own properties of MetaTest-14.MetaTest.TestMonitorClass
|
|
190
|
+
|
|
191
|
+
static name: string
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Name of the imported GIR library
|
|
196
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
197
|
+
*/
|
|
198
|
+
export const __name__: string
|
|
199
|
+
/**
|
|
200
|
+
* Version of the imported GIR library
|
|
201
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
202
|
+
*/
|
|
203
|
+
export const __version__: string
|
|
204
|
+
// END
|
package/metatest-14.d.ts
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
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 './metatest-14-ambient.d.ts';
|
|
10
|
+
import './metatest-14-import.d.ts';
|
|
11
|
+
/**
|
|
12
|
+
* MetaTest-14
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import type xlib from '@girs/xlib-2.0';
|
|
16
|
+
import type xfixes from '@girs/xfixes-4.0';
|
|
17
|
+
import type Mtk from '@girs/mtk-14';
|
|
18
|
+
import type Graphene from '@girs/graphene-1.0';
|
|
19
|
+
import type GObject from '@girs/gobject-2.0';
|
|
20
|
+
import type GLib from '@girs/glib-2.0';
|
|
21
|
+
import type Meta from '@girs/meta-14';
|
|
22
|
+
import type Gio from '@girs/gio-2.0';
|
|
23
|
+
import type GDesktopEnums from '@girs/gdesktopenums-3.0';
|
|
24
|
+
import type CoglPango from '@girs/coglpango-14';
|
|
25
|
+
import type PangoCairo from '@girs/pangocairo-1.0';
|
|
26
|
+
import type cairo from '@girs/cairo-1.0';
|
|
27
|
+
import type Pango from '@girs/pango-1.0';
|
|
28
|
+
import type HarfBuzz from '@girs/harfbuzz-0.0';
|
|
29
|
+
import type freetype2 from '@girs/freetype2-2.0';
|
|
30
|
+
import type Cogl from '@girs/cogl-14';
|
|
31
|
+
import type GL from '@girs/gl-1.0';
|
|
32
|
+
import type Clutter from '@girs/clutter-14';
|
|
33
|
+
import type Atk from '@girs/atk-1.0';
|
|
34
|
+
|
|
35
|
+
export namespace MetaTest {
|
|
36
|
+
|
|
37
|
+
enum ContextTestType {
|
|
38
|
+
HEADLESS,
|
|
39
|
+
VKMS,
|
|
40
|
+
NESTED,
|
|
41
|
+
}
|
|
42
|
+
enum ContextTestFlag {
|
|
43
|
+
NONE,
|
|
44
|
+
TEST_CLIENT,
|
|
45
|
+
NO_X11,
|
|
46
|
+
}
|
|
47
|
+
enum TestRunFlags {
|
|
48
|
+
NONE,
|
|
49
|
+
CAN_SKIP,
|
|
50
|
+
}
|
|
51
|
+
module ContextTest {
|
|
52
|
+
|
|
53
|
+
// Signal callback interfaces
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Signal callback interface for `after-tests`
|
|
57
|
+
*/
|
|
58
|
+
interface AfterTestsSignalCallback {
|
|
59
|
+
($obj: ContextTest): void
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Signal callback interface for `before-tests`
|
|
64
|
+
*/
|
|
65
|
+
interface BeforeTestsSignalCallback {
|
|
66
|
+
($obj: ContextTest): void
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Signal callback interface for `run-tests`
|
|
71
|
+
*/
|
|
72
|
+
interface RunTestsSignalCallback {
|
|
73
|
+
($obj: ContextTest): number
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
// Constructor properties interface
|
|
78
|
+
|
|
79
|
+
interface ConstructorProperties extends Meta.Context.ConstructorProperties {
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
interface ContextTest {
|
|
85
|
+
|
|
86
|
+
// Own fields of MetaTest-14.MetaTest.ContextTest
|
|
87
|
+
|
|
88
|
+
parent_instance: Meta.Context & GObject.Object
|
|
89
|
+
|
|
90
|
+
// Owm methods of MetaTest-14.MetaTest.ContextTest
|
|
91
|
+
|
|
92
|
+
run_tests(flags: TestRunFlags): number
|
|
93
|
+
wait_for_x11_display(): void
|
|
94
|
+
|
|
95
|
+
// Own signals of MetaTest-14.MetaTest.ContextTest
|
|
96
|
+
|
|
97
|
+
connect(sigName: "after-tests", callback: ContextTest.AfterTestsSignalCallback): number
|
|
98
|
+
connect_after(sigName: "after-tests", callback: ContextTest.AfterTestsSignalCallback): number
|
|
99
|
+
emit(sigName: "after-tests", ...args: any[]): void
|
|
100
|
+
connect(sigName: "before-tests", callback: ContextTest.BeforeTestsSignalCallback): number
|
|
101
|
+
connect_after(sigName: "before-tests", callback: ContextTest.BeforeTestsSignalCallback): number
|
|
102
|
+
emit(sigName: "before-tests", ...args: any[]): void
|
|
103
|
+
connect(sigName: "run-tests", callback: ContextTest.RunTestsSignalCallback): number
|
|
104
|
+
connect_after(sigName: "run-tests", callback: ContextTest.RunTestsSignalCallback): number
|
|
105
|
+
emit(sigName: "run-tests", ...args: any[]): void
|
|
106
|
+
|
|
107
|
+
// Class property signals of MetaTest-14.MetaTest.ContextTest
|
|
108
|
+
|
|
109
|
+
connect(sigName: "notify::name", callback: (($obj: ContextTest, pspec: GObject.ParamSpec) => void)): number
|
|
110
|
+
connect_after(sigName: "notify::name", callback: (($obj: ContextTest, pspec: GObject.ParamSpec) => void)): number
|
|
111
|
+
emit(sigName: "notify::name", ...args: any[]): void
|
|
112
|
+
connect(sigName: "notify::unsafe-mode", callback: (($obj: ContextTest, pspec: GObject.ParamSpec) => void)): number
|
|
113
|
+
connect_after(sigName: "notify::unsafe-mode", callback: (($obj: ContextTest, pspec: GObject.ParamSpec) => void)): number
|
|
114
|
+
emit(sigName: "notify::unsafe-mode", ...args: any[]): void
|
|
115
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
116
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
117
|
+
emit(sigName: string, ...args: any[]): void
|
|
118
|
+
disconnect(id: number): void
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
class ContextTest extends Meta.Context {
|
|
122
|
+
|
|
123
|
+
// Own properties of MetaTest-14.MetaTest.ContextTest
|
|
124
|
+
|
|
125
|
+
static name: string
|
|
126
|
+
static $gtype: GObject.GType<ContextTest>
|
|
127
|
+
|
|
128
|
+
// Constructors of MetaTest-14.MetaTest.ContextTest
|
|
129
|
+
|
|
130
|
+
constructor(config?: ContextTest.ConstructorProperties)
|
|
131
|
+
_init(config?: ContextTest.ConstructorProperties): void
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
module TestMonitor {
|
|
135
|
+
|
|
136
|
+
// Constructor properties interface
|
|
137
|
+
|
|
138
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
interface TestMonitor {
|
|
144
|
+
|
|
145
|
+
// Owm methods of MetaTest-14.MetaTest.TestMonitor
|
|
146
|
+
|
|
147
|
+
destroy(): void
|
|
148
|
+
|
|
149
|
+
// Class property signals of MetaTest-14.MetaTest.TestMonitor
|
|
150
|
+
|
|
151
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
152
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
153
|
+
emit(sigName: string, ...args: any[]): void
|
|
154
|
+
disconnect(id: number): void
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
class TestMonitor extends GObject.Object {
|
|
158
|
+
|
|
159
|
+
// Own properties of MetaTest-14.MetaTest.TestMonitor
|
|
160
|
+
|
|
161
|
+
static name: string
|
|
162
|
+
static $gtype: GObject.GType<TestMonitor>
|
|
163
|
+
|
|
164
|
+
// Constructors of MetaTest-14.MetaTest.TestMonitor
|
|
165
|
+
|
|
166
|
+
constructor(config?: TestMonitor.ConstructorProperties)
|
|
167
|
+
constructor(context: Meta.Context, width: number, height: number, refresh_rate: number)
|
|
168
|
+
static new(context: Meta.Context, width: number, height: number, refresh_rate: number): TestMonitor
|
|
169
|
+
_init(config?: TestMonitor.ConstructorProperties): void
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
interface ContextTestClass {
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
abstract class ContextTestClass {
|
|
176
|
+
|
|
177
|
+
// Own properties of MetaTest-14.MetaTest.ContextTestClass
|
|
178
|
+
|
|
179
|
+
static name: string
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
interface TestMonitorClass {
|
|
183
|
+
|
|
184
|
+
// Own fields of MetaTest-14.MetaTest.TestMonitorClass
|
|
185
|
+
|
|
186
|
+
parent_class: GObject.ObjectClass
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
abstract class TestMonitorClass {
|
|
190
|
+
|
|
191
|
+
// Own properties of MetaTest-14.MetaTest.TestMonitorClass
|
|
192
|
+
|
|
193
|
+
static name: string
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Name of the imported GIR library
|
|
198
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
199
|
+
*/
|
|
200
|
+
const __name__: string
|
|
201
|
+
/**
|
|
202
|
+
* Version of the imported GIR library
|
|
203
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
204
|
+
*/
|
|
205
|
+
const __version__: string
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export default MetaTest;
|
|
209
|
+
// END
|
package/metatest-14.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@girs/metatest-14",
|
|
3
|
+
"version": "14.0.0-3.3.0",
|
|
4
|
+
"description": "GJS TypeScript type definitions for MetaTest-14, generated from library version 14.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "metatest-14.js",
|
|
7
|
+
"main": "metatest-14.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
"./ambient": {
|
|
10
|
+
"types": "./metatest-14-ambient.d.ts",
|
|
11
|
+
"default": "./metatest-14-ambient.js"
|
|
12
|
+
},
|
|
13
|
+
"./import": {
|
|
14
|
+
"types": "./metatest-14-import.d.ts",
|
|
15
|
+
"default": "./metatest-14-import.js"
|
|
16
|
+
},
|
|
17
|
+
".": {
|
|
18
|
+
"import": {
|
|
19
|
+
"types": "./metatest-14.d.ts",
|
|
20
|
+
"default": "./metatest-14.js"
|
|
21
|
+
},
|
|
22
|
+
"require": {
|
|
23
|
+
"types": "./metatest-14.d.cts",
|
|
24
|
+
"default": "./metatest-14.cjs"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"test": "yarn test:esm && yarn test:cjs",
|
|
30
|
+
"test:esm": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit metatest-14.d.ts",
|
|
31
|
+
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit metatest-14.d.cts"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@girs/atk-1.0": "^2.50.1-3.3.0",
|
|
35
|
+
"@girs/cairo-1.0": "^1.0.0-3.3.0",
|
|
36
|
+
"@girs/clutter-14": "^14.0.0-3.3.0",
|
|
37
|
+
"@girs/cogl-14": "^14.0.0-3.3.0",
|
|
38
|
+
"@girs/coglpango-14": "^14.0.0-3.3.0",
|
|
39
|
+
"@girs/freetype2-2.0": "^2.0.0-3.3.0",
|
|
40
|
+
"@girs/gdesktopenums-3.0": "^3.0.0-3.3.0",
|
|
41
|
+
"@girs/gio-2.0": "^2.78.0-3.3.0",
|
|
42
|
+
"@girs/gjs": "^3.3.0",
|
|
43
|
+
"@girs/gl-1.0": "^1.0.0-3.3.0",
|
|
44
|
+
"@girs/glib-2.0": "^2.78.0-3.3.0",
|
|
45
|
+
"@girs/gobject-2.0": "^2.78.0-3.3.0",
|
|
46
|
+
"@girs/graphene-1.0": "^1.0.0-3.3.0",
|
|
47
|
+
"@girs/harfbuzz-0.0": "^8.2.1-3.3.0",
|
|
48
|
+
"@girs/meta-14": "^14.0.0-3.3.0",
|
|
49
|
+
"@girs/mtk-14": "^14.0.0-3.3.0",
|
|
50
|
+
"@girs/pango-1.0": "^1.51.0-3.3.0",
|
|
51
|
+
"@girs/pangocairo-1.0": "^1.0.0-3.3.0",
|
|
52
|
+
"@girs/xfixes-4.0": "^4.0.0-3.3.0",
|
|
53
|
+
"@girs/xlib-2.0": "^2.0.0-3.3.0"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"typescript": "*"
|
|
57
|
+
},
|
|
58
|
+
"keywords": [
|
|
59
|
+
"Gir",
|
|
60
|
+
"TypeScript",
|
|
61
|
+
"types",
|
|
62
|
+
"GObject-Introspection",
|
|
63
|
+
"GJS",
|
|
64
|
+
"MetaTest-14"
|
|
65
|
+
],
|
|
66
|
+
"author": "ts-for-gir",
|
|
67
|
+
"license": "MIT",
|
|
68
|
+
"repository": {
|
|
69
|
+
"type": "git",
|
|
70
|
+
"url": "git+https://github.com/gjsify/ts-for-gir.git"
|
|
71
|
+
},
|
|
72
|
+
"bugs": {
|
|
73
|
+
"url": "https://github.com/gjsify/ts-for-gir/issues"
|
|
74
|
+
},
|
|
75
|
+
"homepage": "https://github.com/gjsify/types/tree/main/metatest-14#readme"
|
|
76
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
// General settings for code interpretation
|
|
4
|
+
"target": "ESNext",
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"lib": ["ESNext"],
|
|
7
|
+
"types": [],
|
|
8
|
+
"experimentalDecorators": true,
|
|
9
|
+
"moduleResolution": "node",
|
|
10
|
+
"noEmit": true,
|
|
11
|
+
"noEmitOnError": false,
|
|
12
|
+
"baseUrl": "./",
|
|
13
|
+
"rootDir": ".",
|
|
14
|
+
// General settings for code generation
|
|
15
|
+
"removeComments": false,
|
|
16
|
+
"inlineSourceMap": false,
|
|
17
|
+
"inlineSources": false,
|
|
18
|
+
"newLine": "LF"
|
|
19
|
+
},
|
|
20
|
+
"include": ["./metatest-14.d.ts"]
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|