@girs/xft-2.0 2.0.0-3.3.0 → 2.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/xft-2.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for xft-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.3.0.
8
+ GJS TypeScript type definitions for xft-2.0, generated from library version 2.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/xft-2.0",
3
- "version": "2.0.0-3.3.0",
3
+ "version": "2.0.0-4.0.0-beta.2",
4
4
  "description": "GJS TypeScript type definitions for xft-2.0, generated from library version 2.0.0",
5
5
  "type": "module",
6
6
  "module": "xft-2.0.js",
@@ -8,32 +8,27 @@
8
8
  "exports": {
9
9
  "./ambient": {
10
10
  "types": "./xft-2.0-ambient.d.ts",
11
+ "import": "./xft-2.0-ambient.js",
11
12
  "default": "./xft-2.0-ambient.js"
12
13
  },
13
14
  "./import": {
14
15
  "types": "./xft-2.0-import.d.ts",
16
+ "import": "./xft-2.0-import.js",
15
17
  "default": "./xft-2.0-import.js"
16
18
  },
17
19
  ".": {
18
- "import": {
19
- "types": "./xft-2.0.d.ts",
20
- "default": "./xft-2.0.js"
21
- },
22
- "require": {
23
- "types": "./xft-2.0.d.cts",
24
- "default": "./xft-2.0.cjs"
25
- }
20
+ "types": "./xft-2.0.d.ts",
21
+ "import": "./xft-2.0.js",
22
+ "default": "./xft-2.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 xft-2.0.d.ts",
31
- "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit xft-2.0.d.cts"
26
+ "test": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit xft-2.0.d.ts"
32
27
  },
33
28
  "dependencies": {
34
- "@girs/gjs": "^3.3.0",
35
- "@girs/gobject-2.0": "^2.78.0-3.3.0",
36
- "@girs/xlib-2.0": "^2.0.0-3.3.0"
29
+ "@girs/gjs": "^4.0.0-beta.2",
30
+ "@girs/gobject-2.0": "^2.80.0-4.0.0-beta.2",
31
+ "@girs/xlib-2.0": "^2.0.0-4.0.0-beta.2"
37
32
  },
38
33
  "devDependencies": {
39
34
  "typescript": "*"
@@ -1,11 +1,11 @@
1
1
 
2
2
  declare module 'gi://xft?version=2.0' {
3
- import Xft20 from '@girs/xft-2.0';
4
- export default Xft20;
3
+ import xft from '@girs/xft-2.0';
4
+ export default xft;
5
5
  }
6
6
 
7
7
  declare module 'gi://xft' {
8
- import Xft20 from '@girs/xft-2.0';
8
+ import Xft20 from 'gi://xft?version=2.0';
9
9
  export default Xft20;
10
10
  }
11
11
 
package/xft-2.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 './xft-2.0-ambient.d.ts';
10
- import './xft-2.0-import.d.ts';
9
+
11
10
  /**
12
11
  * xft-2.0
13
12
  */
@@ -16,59 +15,50 @@ import type xlib from '@girs/xlib-2.0';
16
15
  import type GObject from '@girs/gobject-2.0';
17
16
 
18
17
  export namespace xft {
18
+ function init(): void;
19
+ class Color {
20
+ static $gtype: GObject.GType<Color>;
19
21
 
20
- function init(): void
21
- interface Color {
22
- }
22
+ // Constructors of xft.Color
23
23
 
24
- class Color {
24
+ _init(...args: any[]): void;
25
+ }
25
26
 
26
- // Own properties of xft-2.0.xft.Color
27
-
28
- static name: string
29
- }
27
+ class Draw {
28
+ static $gtype: GObject.GType<Draw>;
30
29
 
31
- interface Draw {
32
- }
30
+ // Constructors of xft.Draw
33
31
 
34
- class Draw {
32
+ _init(...args: any[]): void;
33
+ }
35
34
 
36
- // Own properties of xft-2.0.xft.Draw
35
+ class Font {
36
+ static $gtype: GObject.GType<Font>;
37
37
 
38
- static name: string
39
- }
38
+ // Constructors of xft.Font
40
39
 
41
- interface Font {
42
- }
40
+ _init(...args: any[]): void;
41
+ }
43
42
 
44
- class Font {
43
+ class GlyphSpec {
44
+ static $gtype: GObject.GType<GlyphSpec>;
45
45
 
46
- // Own properties of xft-2.0.xft.Font
46
+ // Constructors of xft.GlyphSpec
47
47
 
48
- static name: string
49
- }
48
+ _init(...args: any[]): void;
49
+ }
50
50
 
51
- interface GlyphSpec {
52
- }
53
-
54
- class GlyphSpec {
55
-
56
- // Own properties of xft-2.0.xft.GlyphSpec
57
-
58
- static name: string
59
- }
60
-
61
- /**
62
- * Name of the imported GIR library
63
- * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
64
- */
65
- const __name__: string
66
- /**
67
- * Version of the imported GIR library
68
- * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
69
- */
70
- const __version__: string
51
+ /**
52
+ * Name of the imported GIR library
53
+ * `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
54
+ */
55
+ const __name__: string;
56
+ /**
57
+ * Version of the imported GIR library
58
+ * `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
59
+ */
60
+ const __version__: string;
71
61
  }
72
62
 
73
63
  export default xft;
74
- // END
64
+ // END
package/xft-2.0.js CHANGED
@@ -1,10 +1,6 @@
1
1
 
2
-
3
2
  // @ts-expect-error
4
3
  import xft from 'gi://xft?version=2.0';
5
4
  export { xft };
6
5
  export default xft;
7
6
 
8
-
9
-
10
-
package/xft-2.0.cjs DELETED
@@ -1,11 +0,0 @@
1
-
2
-
3
- imports.gi.versions.xft = '2.0'
4
- const xft = imports.gi.xft;
5
-
6
- module.exports = xft;
7
-
8
-
9
-
10
-
11
-
package/xft-2.0.d.cts DELETED
@@ -1,69 +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 './xft-2.0-ambient.d.ts';
10
- import './xft-2.0-import.d.ts';
11
- /**
12
- * xft-2.0
13
- */
14
-
15
- import type xlib from '@girs/xlib-2.0';
16
- import type GObject from '@girs/gobject-2.0';
17
-
18
- export function init(): void
19
- export interface Color {
20
- }
21
-
22
- export class Color {
23
-
24
- // Own properties of xft-2.0.xft.Color
25
-
26
- static name: string
27
- }
28
-
29
- export interface Draw {
30
- }
31
-
32
- export class Draw {
33
-
34
- // Own properties of xft-2.0.xft.Draw
35
-
36
- static name: string
37
- }
38
-
39
- export interface Font {
40
- }
41
-
42
- export class Font {
43
-
44
- // Own properties of xft-2.0.xft.Font
45
-
46
- static name: string
47
- }
48
-
49
- export interface GlyphSpec {
50
- }
51
-
52
- export class GlyphSpec {
53
-
54
- // Own properties of xft-2.0.xft.GlyphSpec
55
-
56
- static name: string
57
- }
58
-
59
- /**
60
- * Name of the imported GIR library
61
- * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
62
- */
63
- export const __name__: string
64
- /**
65
- * Version of the imported GIR library
66
- * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
67
- */
68
- export const __version__: string
69
- // END