@girs/gtef-2 2.0.0-4.0.0-beta.5 → 2.0.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/gtef-2)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Gtef-2, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.5.
8
+ GJS TypeScript type definitions for Gtef-2, generated from library version 2.0.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://Gtef?version=2' {
3
- import Gtef from '@girs/gtef-2';
4
- export default Gtef;
2
+ import Gtef2 from '@girs/gtef-2';
3
+ export default Gtef2;
5
4
  }
6
5
 
7
6
  declare module 'gi://Gtef' {
8
7
  import Gtef2 from 'gi://Gtef?version=2';
9
8
  export default Gtef2;
10
9
  }
11
-
12
-
@@ -1,4 +1,3 @@
1
-
2
1
  import Gtef2 from '@girs/gtef-2';
3
2
 
4
3
  declare global {
@@ -8,5 +7,3 @@ declare global {
8
7
  }
9
8
 
10
9
  export default GjsGiImports;
11
-
12
-
package/gtef-2.d.ts CHANGED
@@ -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 './gtef-2-ambient.d.ts';
9
-
10
- /**
11
- * Gtef-2
12
- */
13
-
10
+ // Module dependencies
14
11
  import type GtkSource from '@girs/gtksource-3.0';
15
12
  import type Gtk from '@girs/gtk-3.0';
16
13
  import type xlib from '@girs/xlib-2.0';
@@ -22,11 +19,15 @@ import type Pango from '@girs/pango-1.0';
22
19
  import type HarfBuzz from '@girs/harfbuzz-0.0';
23
20
  import type freetype2 from '@girs/freetype2-2.0';
24
21
  import type Gio from '@girs/gio-2.0';
25
- import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
26
22
  import type GModule from '@girs/gmodule-2.0';
23
+ import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
27
24
  import type Atk from '@girs/atk-1.0';
28
25
 
29
26
  export namespace Gtef {
27
+ /**
28
+ * Gtef-2
29
+ */
30
+
30
31
  enum CompressionType {
31
32
  /**
32
33
  * plain text.
@@ -1505,7 +1506,7 @@ export namespace Gtef {
1505
1506
  * static void
1506
1507
  * my_object_class_init (MyObjectClass *klass)
1507
1508
  * {
1508
- * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
1509
+ * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
1509
1510
  * 0, 100,
1510
1511
  * 50,
1511
1512
  * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -1658,10 +1659,45 @@ export namespace Gtef {
1658
1659
  * @param closure #GClosure to watch
1659
1660
  */
1660
1661
  watch_closure(closure: GObject.Closure): void;
1662
+ /**
1663
+ * the `constructed` function is called by g_object_new() as the
1664
+ * final step of the object creation process. At the point of the call, all
1665
+ * construction properties have been set on the object. The purpose of this
1666
+ * call is to allow for object initialisation steps that can only be performed
1667
+ * after construction properties have been set. `constructed` implementors
1668
+ * should chain up to the `constructed` call of their parent class to allow it
1669
+ * to complete its initialisation.
1670
+ */
1661
1671
  vfunc_constructed(): void;
1672
+ /**
1673
+ * emits property change notification for a bunch
1674
+ * of properties. Overriding `dispatch_properties_changed` should be rarely
1675
+ * needed.
1676
+ * @param n_pspecs
1677
+ * @param pspecs
1678
+ */
1662
1679
  vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
1680
+ /**
1681
+ * the `dispose` function is supposed to drop all references to other
1682
+ * objects, but keep the instance otherwise intact, so that client method
1683
+ * invocations still work. It may be run multiple times (due to reference
1684
+ * loops). Before returning, `dispose` should chain up to the `dispose` method
1685
+ * of the parent class.
1686
+ */
1663
1687
  vfunc_dispose(): void;
1688
+ /**
1689
+ * instance finalization function, should finish the finalization of
1690
+ * the instance begun in `dispose` and chain up to the `finalize` method of the
1691
+ * parent class.
1692
+ */
1664
1693
  vfunc_finalize(): void;
1694
+ /**
1695
+ * the generic getter for all properties of this type. Should be
1696
+ * overridden for every type with properties.
1697
+ * @param property_id
1698
+ * @param value
1699
+ * @param pspec
1700
+ */
1665
1701
  vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
1666
1702
  /**
1667
1703
  * Emits a "notify" signal for the property `property_name` on `object`.
@@ -1677,6 +1713,16 @@ export namespace Gtef {
1677
1713
  * @param pspec
1678
1714
  */
1679
1715
  vfunc_notify(pspec: GObject.ParamSpec): void;
1716
+ /**
1717
+ * the generic setter for all properties of this type. Should be
1718
+ * overridden for every type with properties. If implementations of
1719
+ * `set_property` don't emit property change notification explicitly, this will
1720
+ * be done implicitly by the type system. However, if the notify signal is
1721
+ * emitted explicitly, the type system will not emit it a second time.
1722
+ * @param property_id
1723
+ * @param value
1724
+ * @param pspec
1725
+ */
1680
1726
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
1681
1727
  disconnect(id: number): void;
1682
1728
  set(properties: { [key: string]: any }): void;
@@ -1989,7 +2035,7 @@ export namespace Gtef {
1989
2035
  * static void
1990
2036
  * my_object_class_init (MyObjectClass *klass)
1991
2037
  * {
1992
- * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
2038
+ * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
1993
2039
  * 0, 100,
1994
2040
  * 50,
1995
2041
  * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -2142,10 +2188,45 @@ export namespace Gtef {
2142
2188
  * @param closure #GClosure to watch
2143
2189
  */
2144
2190
  watch_closure(closure: GObject.Closure): void;
2191
+ /**
2192
+ * the `constructed` function is called by g_object_new() as the
2193
+ * final step of the object creation process. At the point of the call, all
2194
+ * construction properties have been set on the object. The purpose of this
2195
+ * call is to allow for object initialisation steps that can only be performed
2196
+ * after construction properties have been set. `constructed` implementors
2197
+ * should chain up to the `constructed` call of their parent class to allow it
2198
+ * to complete its initialisation.
2199
+ */
2145
2200
  vfunc_constructed(): void;
2201
+ /**
2202
+ * emits property change notification for a bunch
2203
+ * of properties. Overriding `dispatch_properties_changed` should be rarely
2204
+ * needed.
2205
+ * @param n_pspecs
2206
+ * @param pspecs
2207
+ */
2146
2208
  vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
2209
+ /**
2210
+ * the `dispose` function is supposed to drop all references to other
2211
+ * objects, but keep the instance otherwise intact, so that client method
2212
+ * invocations still work. It may be run multiple times (due to reference
2213
+ * loops). Before returning, `dispose` should chain up to the `dispose` method
2214
+ * of the parent class.
2215
+ */
2147
2216
  vfunc_dispose(): void;
2217
+ /**
2218
+ * instance finalization function, should finish the finalization of
2219
+ * the instance begun in `dispose` and chain up to the `finalize` method of the
2220
+ * parent class.
2221
+ */
2148
2222
  vfunc_finalize(): void;
2223
+ /**
2224
+ * the generic getter for all properties of this type. Should be
2225
+ * overridden for every type with properties.
2226
+ * @param property_id
2227
+ * @param value
2228
+ * @param pspec
2229
+ */
2149
2230
  vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
2150
2231
  /**
2151
2232
  * Emits a "notify" signal for the property `property_name` on `object`.
@@ -2161,6 +2242,16 @@ export namespace Gtef {
2161
2242
  * @param pspec
2162
2243
  */
2163
2244
  vfunc_notify(pspec: GObject.ParamSpec): void;
2245
+ /**
2246
+ * the generic setter for all properties of this type. Should be
2247
+ * overridden for every type with properties. If implementations of
2248
+ * `set_property` don't emit property change notification explicitly, this will
2249
+ * be done implicitly by the type system. However, if the notify signal is
2250
+ * emitted explicitly, the type system will not emit it a second time.
2251
+ * @param property_id
2252
+ * @param value
2253
+ * @param pspec
2254
+ */
2164
2255
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
2165
2256
  disconnect(id: number): void;
2166
2257
  set(properties: { [key: string]: any }): void;
@@ -2421,7 +2512,7 @@ export namespace Gtef {
2421
2512
  * static void
2422
2513
  * my_object_class_init (MyObjectClass *klass)
2423
2514
  * {
2424
- * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
2515
+ * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
2425
2516
  * 0, 100,
2426
2517
  * 50,
2427
2518
  * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -2574,10 +2665,45 @@ export namespace Gtef {
2574
2665
  * @param closure #GClosure to watch
2575
2666
  */
2576
2667
  watch_closure(closure: GObject.Closure): void;
2668
+ /**
2669
+ * the `constructed` function is called by g_object_new() as the
2670
+ * final step of the object creation process. At the point of the call, all
2671
+ * construction properties have been set on the object. The purpose of this
2672
+ * call is to allow for object initialisation steps that can only be performed
2673
+ * after construction properties have been set. `constructed` implementors
2674
+ * should chain up to the `constructed` call of their parent class to allow it
2675
+ * to complete its initialisation.
2676
+ */
2577
2677
  vfunc_constructed(): void;
2678
+ /**
2679
+ * emits property change notification for a bunch
2680
+ * of properties. Overriding `dispatch_properties_changed` should be rarely
2681
+ * needed.
2682
+ * @param n_pspecs
2683
+ * @param pspecs
2684
+ */
2578
2685
  vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
2686
+ /**
2687
+ * the `dispose` function is supposed to drop all references to other
2688
+ * objects, but keep the instance otherwise intact, so that client method
2689
+ * invocations still work. It may be run multiple times (due to reference
2690
+ * loops). Before returning, `dispose` should chain up to the `dispose` method
2691
+ * of the parent class.
2692
+ */
2579
2693
  vfunc_dispose(): void;
2694
+ /**
2695
+ * instance finalization function, should finish the finalization of
2696
+ * the instance begun in `dispose` and chain up to the `finalize` method of the
2697
+ * parent class.
2698
+ */
2580
2699
  vfunc_finalize(): void;
2700
+ /**
2701
+ * the generic getter for all properties of this type. Should be
2702
+ * overridden for every type with properties.
2703
+ * @param property_id
2704
+ * @param value
2705
+ * @param pspec
2706
+ */
2581
2707
  vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
2582
2708
  /**
2583
2709
  * Emits a "notify" signal for the property `property_name` on `object`.
@@ -2593,6 +2719,16 @@ export namespace Gtef {
2593
2719
  * @param pspec
2594
2720
  */
2595
2721
  vfunc_notify(pspec: GObject.ParamSpec): void;
2722
+ /**
2723
+ * the generic setter for all properties of this type. Should be
2724
+ * overridden for every type with properties. If implementations of
2725
+ * `set_property` don't emit property change notification explicitly, this will
2726
+ * be done implicitly by the type system. However, if the notify signal is
2727
+ * emitted explicitly, the type system will not emit it a second time.
2728
+ * @param property_id
2729
+ * @param value
2730
+ * @param pspec
2731
+ */
2596
2732
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
2597
2733
  disconnect(id: number): void;
2598
2734
  set(properties: { [key: string]: any }): void;
@@ -2818,4 +2954,5 @@ export namespace Gtef {
2818
2954
  }
2819
2955
 
2820
2956
  export default Gtef;
2957
+
2821
2958
  // END
package/gtef-2.js CHANGED
@@ -1,6 +1,5 @@
1
1
 
2
- // @ts-expect-error
3
- import Gtef from 'gi://Gtef?version=2';
4
- export { Gtef };
5
- export default Gtef;
2
+ // @ts-expect-error
3
+ import Gtef from 'gi://Gtef?version=2';
4
+ export default Gtef;
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 './gtef-2-ambient.d.ts';
11
+
12
+ import './gtef-2-import.d.ts';
13
+
14
+ import Gtef from './gtef-2.js';
15
+ export default Gtef;
package/index.js ADDED
@@ -0,0 +1,5 @@
1
+
2
+ // @ts-expect-error
3
+ import Gtef from './gtef-2.js';
4
+ export default Gtef;
5
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gtef-2",
3
- "version": "2.0.0-4.0.0-beta.5",
3
+ "version": "2.0.0-4.0.0-beta.7",
4
4
  "description": "GJS TypeScript type definitions for Gtef-2, generated from library version 2.0.0",
5
5
  "type": "module",
6
6
  "module": "gtef-2.js",
@@ -16,31 +16,36 @@
16
16
  "import": "./gtef-2-import.js",
17
17
  "default": "./gtef-2-import.js"
18
18
  },
19
- ".": {
19
+ "./gtef-2": {
20
20
  "types": "./gtef-2.d.ts",
21
21
  "import": "./gtef-2.js",
22
22
  "default": "./gtef-2.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 gtef-2.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/gtksource-3.0": "^3.0.0-4.0.0-beta.5",
41
- "@girs/harfbuzz-0.0": "^8.3.1-4.0.0-beta.5",
42
- "@girs/pango-1.0": "^1.52.2-4.0.0-beta.5",
43
- "@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/gtksource-3.0": "^3.0.0-4.0.0-beta.7",
46
+ "@girs/harfbuzz-0.0": "^8.1.1-4.0.0-beta.7",
47
+ "@girs/pango-1.0": "^1.52.2-4.0.0-beta.7",
48
+ "@girs/xlib-2.0": "^2.0.0-4.0.0-beta.7"
44
49
  },
45
50
  "devDependencies": {
46
51
  "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": "./",