@girs/cogl-13 13.0.0-4.0.0-beta.6 → 13.0.0-4.0.0-beta.8

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/cogl-13)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Cogl-13, generated from library version 13.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.6.
8
+ GJS TypeScript type definitions for Cogl-13, generated from library version 13.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.8.
9
9
 
10
10
 
11
11
  ## Install
@@ -1,8 +1,9 @@
1
-
2
1
  declare module 'gi://Cogl?version=13' {
3
- import Cogl from '@girs/cogl-13';
4
- export default Cogl;
2
+ import Cogl13 from '@girs/cogl-13';
3
+ export default Cogl13;
5
4
  }
6
5
 
7
-
8
-
6
+ declare module 'gi://Cogl' {
7
+ import Cogl13 from 'gi://Cogl?version=13';
8
+ export default Cogl13;
9
+ }
@@ -1,2 +1 @@
1
1
  // Module import type definition not generated, otherwise this would cause a type conflict, this is because several GIR modules were generated with the same namespace: "Cogl"
2
-
package/cogl-13.d.ts CHANGED
@@ -1,18 +1,13 @@
1
- /*
1
+ /**
2
2
  * Type Definitions for Gjs (https://gjs.guide/)
3
3
  *
4
4
  * These type definitions are automatically generated, do not edit them by hand.
5
5
  * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
6
+ *
7
+ * The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
6
8
  */
7
9
 
8
- import './cogl-13-ambient.d.ts';
9
-
10
- import './cogl-13-import.d.ts';
11
-
12
- /**
13
- * Cogl-13
14
- */
15
-
10
+ // Module dependencies
16
11
  import type cairo from '@girs/cairo-1.0';
17
12
  import type GObject from '@girs/gobject-2.0';
18
13
  import type GLib from '@girs/glib-2.0';
@@ -20,6 +15,10 @@ import type Graphene from '@girs/graphene-1.0';
20
15
  import type GL from '@girs/gl-1.0';
21
16
 
22
17
  export namespace Cogl {
18
+ /**
19
+ * Cogl-13
20
+ */
21
+
23
22
  /**
24
23
  * Data types for the components of a vertex attribute.
25
24
  */
@@ -4755,4 +4754,5 @@ export namespace Cogl {
4755
4754
  }
4756
4755
 
4757
4756
  export default Cogl;
4757
+
4758
4758
  // END
package/cogl-13.js CHANGED
@@ -1,6 +1,5 @@
1
1
 
2
- // @ts-expect-error
3
- import Cogl from 'gi://Cogl?version=13';
4
- export { Cogl };
5
- export default Cogl;
2
+ // @ts-expect-error
3
+ import Cogl from 'gi://Cogl?version=13';
4
+ export default Cogl;
6
5
 
package/index.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Type Definitions for Gjs (https://gjs.guide/)
3
+ *
4
+ * These type definitions are automatically generated, do not edit them by hand.
5
+ * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
6
+ *
7
+ * This template is used to generate the index.d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
8
+ */
9
+
10
+ import './cogl-13-ambient.d.ts';
11
+
12
+ import Cogl from './cogl-13.js';
13
+ export default Cogl;
package/index.js ADDED
@@ -0,0 +1,5 @@
1
+
2
+ // @ts-expect-error
3
+ import Cogl from './cogl-13.js';
4
+ export default Cogl;
5
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/cogl-13",
3
- "version": "13.0.0-4.0.0-beta.6",
3
+ "version": "13.0.0-4.0.0-beta.8",
4
4
  "description": "GJS TypeScript type definitions for Cogl-13, generated from library version 13.0.0",
5
5
  "type": "module",
6
6
  "module": "cogl-13.js",
@@ -16,22 +16,27 @@
16
16
  "import": "./cogl-13-import.js",
17
17
  "default": "./cogl-13-import.js"
18
18
  },
19
- ".": {
19
+ "./cogl-13": {
20
20
  "types": "./cogl-13.d.ts",
21
21
  "import": "./cogl-13.js",
22
22
  "default": "./cogl-13.js"
23
+ },
24
+ ".": {
25
+ "types": "./index.d.ts",
26
+ "import": "./index.js",
27
+ "default": "./index.js"
23
28
  }
24
29
  },
25
30
  "scripts": {
26
31
  "test": "tsc --project tsconfig.json"
27
32
  },
28
33
  "dependencies": {
29
- "@girs/cairo-1.0": "^1.0.0-4.0.0-beta.6",
30
- "@girs/gjs": "^4.0.0-beta.6",
31
- "@girs/gl-1.0": "^1.0.0-4.0.0-beta.6",
32
- "@girs/glib-2.0": "^2.80.3-4.0.0-beta.6",
33
- "@girs/gobject-2.0": "^2.80.3-4.0.0-beta.6",
34
- "@girs/graphene-1.0": "^1.0.0-4.0.0-beta.6"
34
+ "@girs/cairo-1.0": "^1.0.0-4.0.0-beta.8",
35
+ "@girs/gjs": "^4.0.0-beta.8",
36
+ "@girs/gl-1.0": "^1.0.0-4.0.0-beta.8",
37
+ "@girs/glib-2.0": "^2.80.2-4.0.0-beta.8",
38
+ "@girs/gobject-2.0": "^2.80.2-4.0.0-beta.8",
39
+ "@girs/graphene-1.0": "^1.0.0-4.0.0-beta.8"
35
40
  },
36
41
  "devDependencies": {
37
42
  "typescript": "*"
package/tsconfig.json CHANGED
@@ -2,11 +2,11 @@
2
2
  "compilerOptions": {
3
3
  // General settings for code interpretation
4
4
  "target": "ESNext",
5
- "module": "ESNext",
5
+ "module": "NodeNext",
6
6
  "lib": ["ESNext"],
7
7
  "types": [],
8
8
  "experimentalDecorators": true,
9
- "moduleResolution": "node",
9
+ "moduleResolution": "NodeNext",
10
10
  "noEmit": true,
11
11
  "noEmitOnError": false,
12
12
  "baseUrl": "./",