@girs/metatest-13 13.0.0-3.2.4
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 +91 -0
- package/metatest-13-ambient.d.ts +9 -0
- package/metatest-13-import.d.ts +13 -0
- package/metatest-13.cjs +11 -0
- package/metatest-13.d.cts +205 -0
- package/metatest-13.d.ts +210 -0
- package/metatest-13.js +10 -0
- package/package.json +71 -0
- package/tsconfig.json +23 -0
- package/typedoc.json +7 -0
package/README.md
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
|
|
2
|
+
# MetaTest-13
|
|
3
|
+
|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
GJS TypeScript type definitions for MetaTest-13, generated from library version 13.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.4.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
To use this type definitions, install them with NPM:
|
|
14
|
+
```bash
|
|
15
|
+
npm install @girs/metatest-13
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
You can import this package into your project like this:
|
|
21
|
+
```ts
|
|
22
|
+
import MetaTest from '@girs/metatest-13';
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Or if you prefer CommonJS, you can also use this:
|
|
26
|
+
```ts
|
|
27
|
+
const MetaTest = require('@girs/metatest-13');
|
|
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-13` or `@girs/metatest-13/ambient` in your `tsconfig` or entry point Typescript file:
|
|
34
|
+
|
|
35
|
+
`index.ts`:
|
|
36
|
+
```ts
|
|
37
|
+
import '@girs/metatest-13'
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
`tsconfig.json`:
|
|
41
|
+
```json
|
|
42
|
+
{
|
|
43
|
+
"compilerOptions": {
|
|
44
|
+
...
|
|
45
|
+
},
|
|
46
|
+
"include": ["@girs/metatest-13"],
|
|
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=13';
|
|
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-13` or `@girs/metatest-13/import` in your `tsconfig` or entry point Typescript file:
|
|
61
|
+
|
|
62
|
+
`index.ts`:
|
|
63
|
+
```ts
|
|
64
|
+
import '@girs/metatest-13'
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
`tsconfig.json`:
|
|
68
|
+
```json
|
|
69
|
+
{
|
|
70
|
+
"compilerOptions": {
|
|
71
|
+
...
|
|
72
|
+
},
|
|
73
|
+
"include": ["@girs/metatest-13"],
|
|
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
|
+
### Bundle
|
|
85
|
+
|
|
86
|
+
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).
|
|
87
|
+
|
|
88
|
+
## Other packages
|
|
89
|
+
|
|
90
|
+
All existing pre-generated packages can be found on [gjsify/types](https://github.com/gjsify/types).
|
|
91
|
+
|
package/metatest-13.cjs
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
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-13-ambient.d.ts';
|
|
10
|
+
import './metatest-13-import.d.ts';
|
|
11
|
+
/**
|
|
12
|
+
* MetaTest-13
|
|
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-13';
|
|
18
|
+
import type cairo from '@girs/cairo-1.0';
|
|
19
|
+
import type GObject from '@girs/gobject-2.0';
|
|
20
|
+
import type GLib from '@girs/glib-2.0';
|
|
21
|
+
import type Graphene from '@girs/graphene-1.0';
|
|
22
|
+
import type Meta from '@girs/meta-13';
|
|
23
|
+
import type GDesktopEnums from '@girs/gdesktopenums-3.0';
|
|
24
|
+
import type CoglPango from '@girs/coglpango-13';
|
|
25
|
+
import type PangoCairo from '@girs/pangocairo-1.0';
|
|
26
|
+
import type Pango from '@girs/pango-1.0';
|
|
27
|
+
import type HarfBuzz from '@girs/harfbuzz-0.0';
|
|
28
|
+
import type freetype2 from '@girs/freetype2-2.0';
|
|
29
|
+
import type Gio from '@girs/gio-2.0';
|
|
30
|
+
import type Cogl from '@girs/cogl-13';
|
|
31
|
+
import type GL from '@girs/gl-1.0';
|
|
32
|
+
import type Clutter from '@girs/clutter-13';
|
|
33
|
+
import type Json from '@girs/json-1.0';
|
|
34
|
+
import type Atk from '@girs/atk-1.0';
|
|
35
|
+
|
|
36
|
+
export enum ContextTestType {
|
|
37
|
+
HEADLESS,
|
|
38
|
+
VKMS,
|
|
39
|
+
NESTED,
|
|
40
|
+
}
|
|
41
|
+
export enum ContextTestFlag {
|
|
42
|
+
NONE,
|
|
43
|
+
TEST_CLIENT,
|
|
44
|
+
NO_X11,
|
|
45
|
+
}
|
|
46
|
+
export enum TestRunFlags {
|
|
47
|
+
NONE,
|
|
48
|
+
CAN_SKIP,
|
|
49
|
+
}
|
|
50
|
+
export module ContextTest {
|
|
51
|
+
|
|
52
|
+
// Signal callback interfaces
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Signal callback interface for `after-tests`
|
|
56
|
+
*/
|
|
57
|
+
export interface AfterTestsSignalCallback {
|
|
58
|
+
($obj: ContextTest): void
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Signal callback interface for `before-tests`
|
|
63
|
+
*/
|
|
64
|
+
export interface BeforeTestsSignalCallback {
|
|
65
|
+
($obj: ContextTest): void
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Signal callback interface for `run-tests`
|
|
70
|
+
*/
|
|
71
|
+
export interface RunTestsSignalCallback {
|
|
72
|
+
($obj: ContextTest): number
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
// Constructor properties interface
|
|
77
|
+
|
|
78
|
+
export interface ConstructorProperties extends Meta.Context.ConstructorProperties {
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface ContextTest {
|
|
84
|
+
|
|
85
|
+
// Own fields of MetaTest-13.MetaTest.ContextTest
|
|
86
|
+
|
|
87
|
+
parent_instance: Meta.Context & GObject.Object
|
|
88
|
+
|
|
89
|
+
// Owm methods of MetaTest-13.MetaTest.ContextTest
|
|
90
|
+
|
|
91
|
+
run_tests(flags: TestRunFlags): number
|
|
92
|
+
wait_for_x11_display(): void
|
|
93
|
+
|
|
94
|
+
// Own signals of MetaTest-13.MetaTest.ContextTest
|
|
95
|
+
|
|
96
|
+
connect(sigName: "after-tests", callback: ContextTest.AfterTestsSignalCallback): number
|
|
97
|
+
connect_after(sigName: "after-tests", callback: ContextTest.AfterTestsSignalCallback): number
|
|
98
|
+
emit(sigName: "after-tests", ...args: any[]): void
|
|
99
|
+
connect(sigName: "before-tests", callback: ContextTest.BeforeTestsSignalCallback): number
|
|
100
|
+
connect_after(sigName: "before-tests", callback: ContextTest.BeforeTestsSignalCallback): number
|
|
101
|
+
emit(sigName: "before-tests", ...args: any[]): void
|
|
102
|
+
connect(sigName: "run-tests", callback: ContextTest.RunTestsSignalCallback): number
|
|
103
|
+
connect_after(sigName: "run-tests", callback: ContextTest.RunTestsSignalCallback): number
|
|
104
|
+
emit(sigName: "run-tests", ...args: any[]): void
|
|
105
|
+
|
|
106
|
+
// Class property signals of MetaTest-13.MetaTest.ContextTest
|
|
107
|
+
|
|
108
|
+
connect(sigName: "notify::name", callback: (($obj: ContextTest, pspec: GObject.ParamSpec) => void)): number
|
|
109
|
+
connect_after(sigName: "notify::name", callback: (($obj: ContextTest, pspec: GObject.ParamSpec) => void)): number
|
|
110
|
+
emit(sigName: "notify::name", ...args: any[]): void
|
|
111
|
+
connect(sigName: "notify::unsafe-mode", callback: (($obj: ContextTest, pspec: GObject.ParamSpec) => void)): number
|
|
112
|
+
connect_after(sigName: "notify::unsafe-mode", callback: (($obj: ContextTest, pspec: GObject.ParamSpec) => void)): number
|
|
113
|
+
emit(sigName: "notify::unsafe-mode", ...args: any[]): void
|
|
114
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
115
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
116
|
+
emit(sigName: string, ...args: any[]): void
|
|
117
|
+
disconnect(id: number): void
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export class ContextTest extends Meta.Context {
|
|
121
|
+
|
|
122
|
+
// Own properties of MetaTest-13.MetaTest.ContextTest
|
|
123
|
+
|
|
124
|
+
static name: string
|
|
125
|
+
static $gtype: GObject.GType<ContextTest>
|
|
126
|
+
|
|
127
|
+
// Constructors of MetaTest-13.MetaTest.ContextTest
|
|
128
|
+
|
|
129
|
+
constructor(config?: ContextTest.ConstructorProperties)
|
|
130
|
+
_init(config?: ContextTest.ConstructorProperties): void
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export module TestMonitor {
|
|
134
|
+
|
|
135
|
+
// Constructor properties interface
|
|
136
|
+
|
|
137
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export interface TestMonitor {
|
|
143
|
+
|
|
144
|
+
// Owm methods of MetaTest-13.MetaTest.TestMonitor
|
|
145
|
+
|
|
146
|
+
destroy(): void
|
|
147
|
+
|
|
148
|
+
// Class property signals of MetaTest-13.MetaTest.TestMonitor
|
|
149
|
+
|
|
150
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
151
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
152
|
+
emit(sigName: string, ...args: any[]): void
|
|
153
|
+
disconnect(id: number): void
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export class TestMonitor extends GObject.Object {
|
|
157
|
+
|
|
158
|
+
// Own properties of MetaTest-13.MetaTest.TestMonitor
|
|
159
|
+
|
|
160
|
+
static name: string
|
|
161
|
+
static $gtype: GObject.GType<TestMonitor>
|
|
162
|
+
|
|
163
|
+
// Constructors of MetaTest-13.MetaTest.TestMonitor
|
|
164
|
+
|
|
165
|
+
constructor(config?: TestMonitor.ConstructorProperties)
|
|
166
|
+
constructor(context: Meta.Context, width: number, height: number, refresh_rate: number)
|
|
167
|
+
static new(context: Meta.Context, width: number, height: number, refresh_rate: number): TestMonitor
|
|
168
|
+
_init(config?: TestMonitor.ConstructorProperties): void
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export interface ContextTestClass {
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export abstract class ContextTestClass {
|
|
175
|
+
|
|
176
|
+
// Own properties of MetaTest-13.MetaTest.ContextTestClass
|
|
177
|
+
|
|
178
|
+
static name: string
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export interface TestMonitorClass {
|
|
182
|
+
|
|
183
|
+
// Own fields of MetaTest-13.MetaTest.TestMonitorClass
|
|
184
|
+
|
|
185
|
+
parent_class: GObject.ObjectClass
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export abstract class TestMonitorClass {
|
|
189
|
+
|
|
190
|
+
// Own properties of MetaTest-13.MetaTest.TestMonitorClass
|
|
191
|
+
|
|
192
|
+
static name: string
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Name of the imported GIR library
|
|
197
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
198
|
+
*/
|
|
199
|
+
export const __name__: string
|
|
200
|
+
/**
|
|
201
|
+
* Version of the imported GIR library
|
|
202
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
203
|
+
*/
|
|
204
|
+
export const __version__: string
|
|
205
|
+
// END
|
package/metatest-13.d.ts
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
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-13-ambient.d.ts';
|
|
10
|
+
import './metatest-13-import.d.ts';
|
|
11
|
+
/**
|
|
12
|
+
* MetaTest-13
|
|
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-13';
|
|
18
|
+
import type cairo from '@girs/cairo-1.0';
|
|
19
|
+
import type GObject from '@girs/gobject-2.0';
|
|
20
|
+
import type GLib from '@girs/glib-2.0';
|
|
21
|
+
import type Graphene from '@girs/graphene-1.0';
|
|
22
|
+
import type Meta from '@girs/meta-13';
|
|
23
|
+
import type GDesktopEnums from '@girs/gdesktopenums-3.0';
|
|
24
|
+
import type CoglPango from '@girs/coglpango-13';
|
|
25
|
+
import type PangoCairo from '@girs/pangocairo-1.0';
|
|
26
|
+
import type Pango from '@girs/pango-1.0';
|
|
27
|
+
import type HarfBuzz from '@girs/harfbuzz-0.0';
|
|
28
|
+
import type freetype2 from '@girs/freetype2-2.0';
|
|
29
|
+
import type Gio from '@girs/gio-2.0';
|
|
30
|
+
import type Cogl from '@girs/cogl-13';
|
|
31
|
+
import type GL from '@girs/gl-1.0';
|
|
32
|
+
import type Clutter from '@girs/clutter-13';
|
|
33
|
+
import type Json from '@girs/json-1.0';
|
|
34
|
+
import type Atk from '@girs/atk-1.0';
|
|
35
|
+
|
|
36
|
+
export namespace MetaTest {
|
|
37
|
+
|
|
38
|
+
enum ContextTestType {
|
|
39
|
+
HEADLESS,
|
|
40
|
+
VKMS,
|
|
41
|
+
NESTED,
|
|
42
|
+
}
|
|
43
|
+
enum ContextTestFlag {
|
|
44
|
+
NONE,
|
|
45
|
+
TEST_CLIENT,
|
|
46
|
+
NO_X11,
|
|
47
|
+
}
|
|
48
|
+
enum TestRunFlags {
|
|
49
|
+
NONE,
|
|
50
|
+
CAN_SKIP,
|
|
51
|
+
}
|
|
52
|
+
module ContextTest {
|
|
53
|
+
|
|
54
|
+
// Signal callback interfaces
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Signal callback interface for `after-tests`
|
|
58
|
+
*/
|
|
59
|
+
interface AfterTestsSignalCallback {
|
|
60
|
+
($obj: ContextTest): void
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Signal callback interface for `before-tests`
|
|
65
|
+
*/
|
|
66
|
+
interface BeforeTestsSignalCallback {
|
|
67
|
+
($obj: ContextTest): void
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Signal callback interface for `run-tests`
|
|
72
|
+
*/
|
|
73
|
+
interface RunTestsSignalCallback {
|
|
74
|
+
($obj: ContextTest): number
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
// Constructor properties interface
|
|
79
|
+
|
|
80
|
+
interface ConstructorProperties extends Meta.Context.ConstructorProperties {
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
interface ContextTest {
|
|
86
|
+
|
|
87
|
+
// Own fields of MetaTest-13.MetaTest.ContextTest
|
|
88
|
+
|
|
89
|
+
parent_instance: Meta.Context & GObject.Object
|
|
90
|
+
|
|
91
|
+
// Owm methods of MetaTest-13.MetaTest.ContextTest
|
|
92
|
+
|
|
93
|
+
run_tests(flags: TestRunFlags): number
|
|
94
|
+
wait_for_x11_display(): void
|
|
95
|
+
|
|
96
|
+
// Own signals of MetaTest-13.MetaTest.ContextTest
|
|
97
|
+
|
|
98
|
+
connect(sigName: "after-tests", callback: ContextTest.AfterTestsSignalCallback): number
|
|
99
|
+
connect_after(sigName: "after-tests", callback: ContextTest.AfterTestsSignalCallback): number
|
|
100
|
+
emit(sigName: "after-tests", ...args: any[]): void
|
|
101
|
+
connect(sigName: "before-tests", callback: ContextTest.BeforeTestsSignalCallback): number
|
|
102
|
+
connect_after(sigName: "before-tests", callback: ContextTest.BeforeTestsSignalCallback): number
|
|
103
|
+
emit(sigName: "before-tests", ...args: any[]): void
|
|
104
|
+
connect(sigName: "run-tests", callback: ContextTest.RunTestsSignalCallback): number
|
|
105
|
+
connect_after(sigName: "run-tests", callback: ContextTest.RunTestsSignalCallback): number
|
|
106
|
+
emit(sigName: "run-tests", ...args: any[]): void
|
|
107
|
+
|
|
108
|
+
// Class property signals of MetaTest-13.MetaTest.ContextTest
|
|
109
|
+
|
|
110
|
+
connect(sigName: "notify::name", callback: (($obj: ContextTest, pspec: GObject.ParamSpec) => void)): number
|
|
111
|
+
connect_after(sigName: "notify::name", callback: (($obj: ContextTest, pspec: GObject.ParamSpec) => void)): number
|
|
112
|
+
emit(sigName: "notify::name", ...args: any[]): void
|
|
113
|
+
connect(sigName: "notify::unsafe-mode", callback: (($obj: ContextTest, pspec: GObject.ParamSpec) => void)): number
|
|
114
|
+
connect_after(sigName: "notify::unsafe-mode", callback: (($obj: ContextTest, pspec: GObject.ParamSpec) => void)): number
|
|
115
|
+
emit(sigName: "notify::unsafe-mode", ...args: any[]): void
|
|
116
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
117
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
118
|
+
emit(sigName: string, ...args: any[]): void
|
|
119
|
+
disconnect(id: number): void
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
class ContextTest extends Meta.Context {
|
|
123
|
+
|
|
124
|
+
// Own properties of MetaTest-13.MetaTest.ContextTest
|
|
125
|
+
|
|
126
|
+
static name: string
|
|
127
|
+
static $gtype: GObject.GType<ContextTest>
|
|
128
|
+
|
|
129
|
+
// Constructors of MetaTest-13.MetaTest.ContextTest
|
|
130
|
+
|
|
131
|
+
constructor(config?: ContextTest.ConstructorProperties)
|
|
132
|
+
_init(config?: ContextTest.ConstructorProperties): void
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
module TestMonitor {
|
|
136
|
+
|
|
137
|
+
// Constructor properties interface
|
|
138
|
+
|
|
139
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
interface TestMonitor {
|
|
145
|
+
|
|
146
|
+
// Owm methods of MetaTest-13.MetaTest.TestMonitor
|
|
147
|
+
|
|
148
|
+
destroy(): void
|
|
149
|
+
|
|
150
|
+
// Class property signals of MetaTest-13.MetaTest.TestMonitor
|
|
151
|
+
|
|
152
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
153
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
154
|
+
emit(sigName: string, ...args: any[]): void
|
|
155
|
+
disconnect(id: number): void
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
class TestMonitor extends GObject.Object {
|
|
159
|
+
|
|
160
|
+
// Own properties of MetaTest-13.MetaTest.TestMonitor
|
|
161
|
+
|
|
162
|
+
static name: string
|
|
163
|
+
static $gtype: GObject.GType<TestMonitor>
|
|
164
|
+
|
|
165
|
+
// Constructors of MetaTest-13.MetaTest.TestMonitor
|
|
166
|
+
|
|
167
|
+
constructor(config?: TestMonitor.ConstructorProperties)
|
|
168
|
+
constructor(context: Meta.Context, width: number, height: number, refresh_rate: number)
|
|
169
|
+
static new(context: Meta.Context, width: number, height: number, refresh_rate: number): TestMonitor
|
|
170
|
+
_init(config?: TestMonitor.ConstructorProperties): void
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
interface ContextTestClass {
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
abstract class ContextTestClass {
|
|
177
|
+
|
|
178
|
+
// Own properties of MetaTest-13.MetaTest.ContextTestClass
|
|
179
|
+
|
|
180
|
+
static name: string
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
interface TestMonitorClass {
|
|
184
|
+
|
|
185
|
+
// Own fields of MetaTest-13.MetaTest.TestMonitorClass
|
|
186
|
+
|
|
187
|
+
parent_class: GObject.ObjectClass
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
abstract class TestMonitorClass {
|
|
191
|
+
|
|
192
|
+
// Own properties of MetaTest-13.MetaTest.TestMonitorClass
|
|
193
|
+
|
|
194
|
+
static name: string
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Name of the imported GIR library
|
|
199
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
200
|
+
*/
|
|
201
|
+
const __name__: string
|
|
202
|
+
/**
|
|
203
|
+
* Version of the imported GIR library
|
|
204
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
205
|
+
*/
|
|
206
|
+
const __version__: string
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export default MetaTest;
|
|
210
|
+
// END
|
package/metatest-13.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@girs/metatest-13",
|
|
3
|
+
"version": "13.0.0-3.2.4",
|
|
4
|
+
"description": "GJS TypeScript type definitions for MetaTest-13, generated from library version 13.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "metatest-13.js",
|
|
7
|
+
"main": "metatest-13.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
"./ambient": "./metatest-13-ambient.d.ts",
|
|
10
|
+
"./import": "./metatest-13-import.d.ts",
|
|
11
|
+
".": {
|
|
12
|
+
"import": {
|
|
13
|
+
"types": "./metatest-13.d.ts",
|
|
14
|
+
"default": "./metatest-13.js"
|
|
15
|
+
},
|
|
16
|
+
"require": {
|
|
17
|
+
"types": "./metatest-13.d.cts",
|
|
18
|
+
"default": "./metatest-13.cjs"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"test": "yarn test:esm && yarn test:cjs",
|
|
24
|
+
"test:esm": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit metatest-13.d.ts",
|
|
25
|
+
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit metatest-13.d.cts"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@girs/atk-1.0": "^2.50.0-3.2.4",
|
|
29
|
+
"@girs/cairo-1.0": "^1.0.0-3.2.4",
|
|
30
|
+
"@girs/clutter-13": "^13.0.0-3.2.4",
|
|
31
|
+
"@girs/cogl-13": "^13.0.0-3.2.4",
|
|
32
|
+
"@girs/coglpango-13": "^13.0.0-3.2.4",
|
|
33
|
+
"@girs/freetype2-2.0": "^2.0.0-3.2.4",
|
|
34
|
+
"@girs/gdesktopenums-3.0": "^3.0.0-3.2.4",
|
|
35
|
+
"@girs/gio-2.0": "^2.78.0-3.2.4",
|
|
36
|
+
"@girs/gjs": "^3.2.4",
|
|
37
|
+
"@girs/gl-1.0": "^1.0.0-3.2.4",
|
|
38
|
+
"@girs/glib-2.0": "^2.78.0-3.2.4",
|
|
39
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.4",
|
|
40
|
+
"@girs/graphene-1.0": "^1.0.0-3.2.4",
|
|
41
|
+
"@girs/harfbuzz-0.0": "^8.2.1-3.2.4",
|
|
42
|
+
"@girs/json-1.0": "^1.7.1-3.2.4",
|
|
43
|
+
"@girs/meta-13": "^13.0.0-3.2.4",
|
|
44
|
+
"@girs/mtk-13": "^13.0.0-3.2.4",
|
|
45
|
+
"@girs/pango-1.0": "^1.51.0-3.2.4",
|
|
46
|
+
"@girs/pangocairo-1.0": "^1.0.0-3.2.4",
|
|
47
|
+
"@girs/xfixes-4.0": "^4.0.0-3.2.4",
|
|
48
|
+
"@girs/xlib-2.0": "^2.0.0-3.2.4"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"typescript": "*"
|
|
52
|
+
},
|
|
53
|
+
"keywords": [
|
|
54
|
+
"Gir",
|
|
55
|
+
"TypeScript",
|
|
56
|
+
"types",
|
|
57
|
+
"GObject-Introspection",
|
|
58
|
+
"GJS",
|
|
59
|
+
"MetaTest-13"
|
|
60
|
+
],
|
|
61
|
+
"author": "ts-for-gir",
|
|
62
|
+
"license": "MIT",
|
|
63
|
+
"repository": {
|
|
64
|
+
"type": "git",
|
|
65
|
+
"url": "git+https://github.com/gjsify/types.git"
|
|
66
|
+
},
|
|
67
|
+
"bugs": {
|
|
68
|
+
"url": "https://github.com/gjsify/ts-for-gir/issues"
|
|
69
|
+
},
|
|
70
|
+
"homepage": "https://github.com/gjsify/types/tree/main/metatest-13#readme"
|
|
71
|
+
}
|
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-13.d.ts"]
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|