@girs/gck-2 4.0.0-3.1.0 → 4.0.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/gck-2.js CHANGED
@@ -1,10 +1,5 @@
1
1
 
2
-
3
- // @ts-expect-error
4
- import Gck from 'gi://Gck?version=2';
5
- export { Gck };
6
- export default Gck;
7
-
8
-
9
-
2
+ // @ts-expect-error
3
+ import Gck from 'gi://Gck?version=2';
4
+ export default Gck;
10
5
 
package/index.d.ts ADDED
@@ -0,0 +1,16 @@
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 './gck-2-ambient.d.ts';
11
+
12
+ import './gck-2-import.d.ts';
13
+
14
+ import Gck from './gck-2.js';
15
+ export default Gck;
16
+
package/index.js ADDED
@@ -0,0 +1,5 @@
1
+
2
+ // @ts-expect-error
3
+ import Gck from './gck-2.js';
4
+ export default Gck;
5
+
package/package.json CHANGED
@@ -1,60 +1,56 @@
1
1
  {
2
- "name": "@girs/gck-2",
3
- "version": "4.0.0-3.1.0",
4
- "description": "GJS TypeScript type definitions for Gck-2, generated from library version 4.0.0",
5
- "type": "module",
6
- "module": "gck-2.js",
7
- "main": "gck-2.js",
8
- "typedoc": {
9
- "entryPoint": "./gck-2.d.ts",
10
- "readmeFile": "./README.md",
11
- "displayName": "Gck-2",
12
- "tsconfig": "./tsconfig.doc.json"
13
- },
14
- "exports": {
15
- "./ambient": "./gck-2-ambient.d.ts",
16
- "./import": "./gck-2-import.d.ts",
17
- ".": {
18
- "import": {
2
+ "name": "@girs/gck-2",
3
+ "version": "4.0.4",
4
+ "libraryVersion": "4.4.0",
5
+ "description": "GJS TypeScript type definitions for Gck-2, generated from library version 4.4.0",
6
+ "type": "module",
7
+ "module": "gck-2.js",
8
+ "main": "gck-2.js",
9
+ "exports": {
10
+ "./ambient": {
11
+ "types": "./gck-2-ambient.d.ts",
12
+ "import": "./gck-2-ambient.js",
13
+ "default": "./gck-2-ambient.js"
14
+ },
15
+ "./import": {
16
+ "types": "./gck-2-import.d.ts",
17
+ "import": "./gck-2-import.js",
18
+ "default": "./gck-2-import.js"
19
+ },
20
+ "./gck-2": {
19
21
  "types": "./gck-2.d.ts",
22
+ "import": "./gck-2.js",
20
23
  "default": "./gck-2.js"
21
24
  },
22
- "require": {
23
- "types": "./gck-2.d.cts",
24
- "default": "./gck-2.cjs"
25
+ ".": {
26
+ "types": "./index.d.ts",
27
+ "import": "./index.js",
28
+ "default": "./index.js"
25
29
  }
26
- }
27
- },
28
- "scripts": {
29
- "test": "yarn test:esm && yarn test:cjs",
30
- "test:esm": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gck-2.d.ts",
31
- "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gck-2.d.cts"
32
- },
33
- "dependencies": {
34
- "@girs/gio-2.0": "^2.76.1-3.1.0",
35
- "@girs/gjs": "^3.1.0",
36
- "@girs/glib-2.0": "^2.76.1-3.1.0",
37
- "@girs/gobject-2.0": "^2.76.1-3.1.0"
38
- },
39
- "devDependencies": {
40
- "typescript": "*"
41
- },
42
- "keywords": [
43
- "Gir",
44
- "TypeScript",
45
- "types",
46
- "GObject-Introspection",
47
- "GJS",
48
- "Gck-2"
49
- ],
50
- "author": "ts-for-gir",
51
- "license": "MIT",
52
- "repository": {
53
- "type": "git",
54
- "url": "git+https://github.com/gjsify/types.git"
55
- },
56
- "bugs": {
57
- "url": "https://github.com/gjsify/ts-for-gir/issues"
58
- },
59
- "homepage": "https://github.com/gjsify/types/tree/main/gck-2#readme"
60
- }
30
+ },
31
+ "scripts": {
32
+ "test": "tsc --project tsconfig.json"
33
+ },
34
+ "dependencies": {
35
+ "@girs/gjs": "^4.0.4",
36
+ "@girs/gio-2.0": "^4.0.4",
37
+ "@girs/gobject-2.0": "^4.0.4",
38
+ "@girs/glib-2.0": "^4.0.4",
39
+ "@girs/gmodule-2.0": "^4.0.4" },
40
+ "devDependencies": {
41
+ "typescript": "*"
42
+ },
43
+ "keywords": ["Gir", "TypeScript", "types", "GObject-Introspection", "GJS", "Gck-2"],
44
+ "author": "ts-for-gir",
45
+ "license": "MIT",
46
+ "repository": {
47
+ "type": "git",
48
+ "url": "git+https://github.com/gjsify/types.git"
49
+ },
50
+ "bugs": {
51
+ "url": "https://github.com/gjsify/ts-for-gir/issues"
52
+ },
53
+ "homepage": "https://github.com/gjsify/types/tree/main/gck-2#readme"
54
+ }
55
+
56
+
package/tsconfig.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "compilerOptions": {
3
+ // General settings for code interpretation
4
+ "target": "ESNext",
5
+ "module": "NodeNext",
6
+ "lib": ["ESNext"],
7
+ "types": [],
8
+ "experimentalDecorators": true,
9
+ "moduleResolution": "NodeNext",
10
+ "noEmit": true,
11
+ "noEmitOnError": false,
12
+ "rootDir": ".",
13
+ // General settings for code generation
14
+ "removeComments": false,
15
+ "inlineSourceMap": false,
16
+ "inlineSources": false,
17
+ "newLine": "LF",
18
+ // Show diagnostics
19
+ "diagnostics": true,
20
+ "paths": {
21
+ "@girs/gio-2.0": [
22
+ "../gio-2.0/index.d.ts"
23
+ ],
24
+ "@girs/gobject-2.0": [
25
+ "../gobject-2.0/index.d.ts"
26
+ ],
27
+ "@girs/glib-2.0": [
28
+ "../glib-2.0/index.d.ts"
29
+ ],
30
+ "@girs/gmodule-2.0": [
31
+ "../gmodule-2.0/index.d.ts"
32
+ ],
33
+ "@girs/gjs": [
34
+ "../gjs/index.d.ts"
35
+ ]
36
+ }
37
+ },
38
+ "include": ["./gck-2.d.ts"]
39
+ }
40
+
41
+
package/typedoc.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "entryPoints": ["./gck-2.d.ts"],
3
+ "readme": "./README.md",
4
+ "name": "Gck-2",
5
+ "tsconfig": "./tsconfig.json",
6
+ "skipErrorChecking": true,
7
+ "highlightLanguages": ["typescript", "javascript", "c", "cpp", "xml", "bash", "json", "css"]
8
+ }
9
+
package/gck-2.cjs DELETED
@@ -1,11 +0,0 @@
1
-
2
-
3
- imports.gi.versions.Gck = '2'
4
- const Gck = imports.gi.Gck;
5
-
6
- module.exports = Gck;
7
-
8
-
9
-
10
-
11
-