@girs/evincedocument-3.0 46.0.0-4.0.0-beta.5 → 46.3.0-4.0.0-beta.7

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/evincedocument-3.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for EvinceDocument-3.0, generated from library version 46.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.5.
8
+ GJS TypeScript type definitions for EvinceDocument-3.0, generated from library version 46.3.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.7.
9
9
 
10
10
 
11
11
  ## Install
@@ -1,12 +1,9 @@
1
-
2
1
  declare module 'gi://EvinceDocument?version=3.0' {
3
- import EvinceDocument from '@girs/evincedocument-3.0';
4
- export default EvinceDocument;
2
+ import EvinceDocument30 from '@girs/evincedocument-3.0';
3
+ export default EvinceDocument30;
5
4
  }
6
5
 
7
6
  declare module 'gi://EvinceDocument' {
8
7
  import EvinceDocument30 from 'gi://EvinceDocument?version=3.0';
9
8
  export default EvinceDocument30;
10
9
  }
11
-
12
-
@@ -1,4 +1,3 @@
1
-
2
1
  import EvinceDocument30 from '@girs/evincedocument-3.0';
3
2
 
4
3
  declare global {
@@ -8,5 +7,3 @@ declare global {
8
7
  }
9
8
 
10
9
  export default GjsGiImports;
11
-
12
-
@@ -1,16 +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 './evincedocument-3.0-ambient.d.ts';
9
-
10
- /**
11
- * EvinceDocument-3.0
12
- */
13
-
10
+ // Module dependencies
14
11
  import type Gtk from '@girs/gtk-3.0';
15
12
  import type xlib from '@girs/xlib-2.0';
16
13
  import type Gdk from '@girs/gdk-3.0';
@@ -21,11 +18,15 @@ import type Pango from '@girs/pango-1.0';
21
18
  import type HarfBuzz from '@girs/harfbuzz-0.0';
22
19
  import type freetype2 from '@girs/freetype2-2.0';
23
20
  import type Gio from '@girs/gio-2.0';
24
- import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
25
21
  import type GModule from '@girs/gmodule-2.0';
22
+ import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
26
23
  import type Atk from '@girs/atk-1.0';
27
24
 
28
25
  export namespace EvinceDocument {
26
+ /**
27
+ * EvinceDocument-3.0
28
+ */
29
+
29
30
  enum AnnotationTextIcon {
30
31
  NOTE,
31
32
  COMMENT,
@@ -495,7 +496,7 @@ export namespace EvinceDocument {
495
496
  * @param utime a #time_t
496
497
  * @returns %TRUE if the last modified date has been updated, %FALSE otherwise.
497
498
  */
498
- set_modified_from_time_t(utime: number): boolean;
499
+ set_modified_from_time_t(utime: never): boolean;
499
500
  /**
500
501
  * Set the name of `annot`.
501
502
  * You can monitor changes of the annotation name by connecting
@@ -693,7 +694,7 @@ export namespace EvinceDocument {
693
694
  * @param utime a #time_t
694
695
  * @returns %TRUE if the last modified date has been updated, %FALSE otherwise.
695
696
  */
696
- set_modified_from_time_t(utime: number): boolean;
697
+ set_modified_from_time_t(utime: never): boolean;
697
698
  /**
698
699
  * Set the name of `annot`.
699
700
  * You can monitor changes of the annotation name by connecting
@@ -899,7 +900,7 @@ export namespace EvinceDocument {
899
900
  * @param utime a #time_t
900
901
  * @returns %TRUE if the last modified date has been updated, %FALSE otherwise.
901
902
  */
902
- set_modified_from_time_t(utime: number): boolean;
903
+ set_modified_from_time_t(utime: never): boolean;
903
904
  /**
904
905
  * Set the name of `annot`.
905
906
  * You can monitor changes of the annotation name by connecting
@@ -1103,7 +1104,7 @@ export namespace EvinceDocument {
1103
1104
  * @param utime a #time_t
1104
1105
  * @returns %TRUE if the last modified date has been updated, %FALSE otherwise.
1105
1106
  */
1106
- set_modified_from_time_t(utime: number): boolean;
1107
+ set_modified_from_time_t(utime: never): boolean;
1107
1108
  /**
1108
1109
  * Set the name of `annot`.
1109
1110
  * You can monitor changes of the annotation name by connecting
@@ -3040,4 +3041,5 @@ export namespace EvinceDocument {
3040
3041
  }
3041
3042
 
3042
3043
  export default EvinceDocument;
3044
+
3043
3045
  // END
@@ -1,6 +1,5 @@
1
1
 
2
- // @ts-expect-error
3
- import EvinceDocument from 'gi://EvinceDocument?version=3.0';
4
- export { EvinceDocument };
5
- export default EvinceDocument;
2
+ // @ts-expect-error
3
+ import EvinceDocument from 'gi://EvinceDocument?version=3.0';
4
+ export default EvinceDocument;
6
5
 
package/index.d.ts ADDED
@@ -0,0 +1,15 @@
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 './evincedocument-3.0-ambient.d.ts';
11
+
12
+ import './evincedocument-3.0-import.d.ts';
13
+
14
+ import EvinceDocument from './evincedocument-3.0.js';
15
+ export default EvinceDocument;
package/index.js ADDED
@@ -0,0 +1,5 @@
1
+
2
+ // @ts-expect-error
3
+ import EvinceDocument from './evincedocument-3.0.js';
4
+ export default EvinceDocument;
5
+
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@girs/evincedocument-3.0",
3
- "version": "46.0.0-4.0.0-beta.5",
4
- "description": "GJS TypeScript type definitions for EvinceDocument-3.0, generated from library version 46.0.0",
3
+ "version": "46.3.0-4.0.0-beta.7",
4
+ "description": "GJS TypeScript type definitions for EvinceDocument-3.0, generated from library version 46.3.0",
5
5
  "type": "module",
6
6
  "module": "evincedocument-3.0.js",
7
7
  "main": "evincedocument-3.0.js",
@@ -16,30 +16,35 @@
16
16
  "import": "./evincedocument-3.0-import.js",
17
17
  "default": "./evincedocument-3.0-import.js"
18
18
  },
19
- ".": {
19
+ "./evincedocument-3.0": {
20
20
  "types": "./evincedocument-3.0.d.ts",
21
21
  "import": "./evincedocument-3.0.js",
22
22
  "default": "./evincedocument-3.0.js"
23
+ },
24
+ ".": {
25
+ "types": "./index.d.ts",
26
+ "import": "./index.js",
27
+ "default": "./index.js"
23
28
  }
24
29
  },
25
30
  "scripts": {
26
- "test": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit evincedocument-3.0.d.ts"
31
+ "test": "tsc --project tsconfig.json"
27
32
  },
28
33
  "dependencies": {
29
- "@girs/atk-1.0": "^2.52.0-4.0.0-beta.5",
30
- "@girs/cairo-1.0": "^1.0.0-4.0.0-beta.5",
31
- "@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.5",
32
- "@girs/gdk-3.0": "^3.24.41-4.0.0-beta.5",
33
- "@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.5",
34
- "@girs/gio-2.0": "^2.80.0-4.0.0-beta.5",
35
- "@girs/gjs": "^4.0.0-beta.5",
36
- "@girs/glib-2.0": "^2.80.0-4.0.0-beta.5",
37
- "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.5",
38
- "@girs/gobject-2.0": "^2.80.0-4.0.0-beta.5",
39
- "@girs/gtk-3.0": "^3.24.41-4.0.0-beta.5",
40
- "@girs/harfbuzz-0.0": "^8.3.1-4.0.0-beta.5",
41
- "@girs/pango-1.0": "^1.52.2-4.0.0-beta.5",
42
- "@girs/xlib-2.0": "^2.0.0-4.0.0-beta.5"
34
+ "@girs/atk-1.0": "^2.52.0-4.0.0-beta.7",
35
+ "@girs/cairo-1.0": "^1.0.0-4.0.0-beta.7",
36
+ "@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.7",
37
+ "@girs/gdk-3.0": "^3.24.42-4.0.0-beta.7",
38
+ "@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.7",
39
+ "@girs/gio-2.0": "^2.80.2-4.0.0-beta.7",
40
+ "@girs/gjs": "^4.0.0-beta.7",
41
+ "@girs/glib-2.0": "^2.80.2-4.0.0-beta.7",
42
+ "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.7",
43
+ "@girs/gobject-2.0": "^2.80.2-4.0.0-beta.7",
44
+ "@girs/gtk-3.0": "^3.24.42-4.0.0-beta.7",
45
+ "@girs/harfbuzz-0.0": "^8.1.1-4.0.0-beta.7",
46
+ "@girs/pango-1.0": "^1.52.2-4.0.0-beta.7",
47
+ "@girs/xlib-2.0": "^2.0.0-4.0.0-beta.7"
43
48
  },
44
49
  "devDependencies": {
45
50
  "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": "./",