@girs/metatest-12 12.0.0-3.0.0-beta.13

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