@girs/gcr-4 4.4.0-4.0.4 → 4.4.0
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 +8 -8
- package/gcr-4.d.ts +65 -0
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -5,25 +5,25 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Gcr-4, generated from library version 4.4.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.
|
|
8
|
+
GJS TypeScript type definitions for Gcr-4, generated from library version 4.4.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.4.0.
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Install the type definitions with npm:
|
|
13
13
|
```bash
|
|
14
14
|
npm install @girs/gcr-4
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Import it like any other module:
|
|
20
20
|
```ts
|
|
21
21
|
import Gcr from '@girs/gcr-4';
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
### Ambient Modules
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
[Ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) let you write the same import you would in plain JavaScript.
|
|
27
27
|
For this you need to include `@girs/gcr-4` or `@girs/gcr-4/ambient` in your `tsconfig` or entry point Typescript file:
|
|
28
28
|
|
|
29
29
|
`index.ts`:
|
|
@@ -42,7 +42,7 @@ import '@girs/gcr-4'
|
|
|
42
42
|
}
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
The ambient module now resolves with types:
|
|
46
46
|
|
|
47
47
|
```ts
|
|
48
48
|
import Gcr from 'gi://Gcr?version=4';
|
|
@@ -50,7 +50,7 @@ import Gcr from 'gi://Gcr?version=4';
|
|
|
50
50
|
|
|
51
51
|
### Global import
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
GJS's global `imports.gi` works too, with types.
|
|
54
54
|
For this you need to include `@girs/gcr-4` or `@girs/gcr-4/import` in your `tsconfig` or entry point Typescript file:
|
|
55
55
|
|
|
56
56
|
`index.ts`:
|
|
@@ -69,7 +69,7 @@ import '@girs/gcr-4'
|
|
|
69
69
|
}
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
That form carries types as well:
|
|
73
73
|
|
|
74
74
|
```ts
|
|
75
75
|
const Gcr = imports.gi.Gcr;
|
|
@@ -77,7 +77,7 @@ const Gcr = imports.gi.Gcr;
|
|
|
77
77
|
|
|
78
78
|
### Bundle
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
Most projects want a bundler. [esbuild](https://esbuild.github.io/) is the smallest thing that works; the [examples directory](https://github.com/gjsify/ts-for-gir/tree/main/examples) has setups for several others.
|
|
81
81
|
|
|
82
82
|
## Other packages
|
|
83
83
|
|
package/gcr-4.d.ts
CHANGED
|
@@ -1468,17 +1468,20 @@ export namespace Gcr {
|
|
|
1468
1468
|
* Returns a user-displayable description of the OID that identifies the
|
|
1469
1469
|
* extension, if known.
|
|
1470
1470
|
* @returns A user-facing description, or `null` if unknown
|
|
1471
|
+
* @since 4.3.90
|
|
1471
1472
|
*/
|
|
1472
1473
|
get_description(): string | null;
|
|
1473
1474
|
|
|
1474
1475
|
/**
|
|
1475
1476
|
* Returns the OID that identifies the extension
|
|
1477
|
+
* @since 4.3.90
|
|
1476
1478
|
*/
|
|
1477
1479
|
get_oid(): string;
|
|
1478
1480
|
|
|
1479
1481
|
/**
|
|
1480
1482
|
* Returns the raw value in bytes of the extension.
|
|
1481
1483
|
* @returns The raw value date
|
|
1484
|
+
* @since 4.3.90
|
|
1482
1485
|
*/
|
|
1483
1486
|
get_value(): GLib.Bytes;
|
|
1484
1487
|
|
|
@@ -1587,6 +1590,7 @@ export namespace Gcr {
|
|
|
1587
1590
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
1588
1591
|
* model.
|
|
1589
1592
|
* @returns the {@link GObject.GType} of the items contained in `list`.
|
|
1593
|
+
* @since 2.44
|
|
1590
1594
|
*/
|
|
1591
1595
|
get_item_type(): GObject.GType;
|
|
1592
1596
|
|
|
@@ -1597,6 +1601,7 @@ export namespace Gcr {
|
|
|
1597
1601
|
* less efficient than iterating the list with increasing values for
|
|
1598
1602
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
1599
1603
|
* @returns the number of items in `list`.
|
|
1604
|
+
* @since 2.44
|
|
1600
1605
|
*/
|
|
1601
1606
|
get_n_items(): number;
|
|
1602
1607
|
|
|
@@ -1615,6 +1620,7 @@ export namespace Gcr {
|
|
|
1615
1620
|
* See also: `g_list_model_get_n_items()`
|
|
1616
1621
|
* @param position the position of the item to fetch
|
|
1617
1622
|
* @returns the object at `position`.
|
|
1623
|
+
* @since 2.44
|
|
1618
1624
|
*/
|
|
1619
1625
|
get_item(position: number): A | null;
|
|
1620
1626
|
|
|
@@ -1642,6 +1648,7 @@ export namespace Gcr {
|
|
|
1642
1648
|
* @param position the position at which `list` changed
|
|
1643
1649
|
* @param removed the number of items removed
|
|
1644
1650
|
* @param added the number of items added
|
|
1651
|
+
* @since 2.44
|
|
1645
1652
|
*/
|
|
1646
1653
|
items_changed(position: number, removed: number, added: number): void;
|
|
1647
1654
|
|
|
@@ -1654,6 +1661,7 @@ export namespace Gcr {
|
|
|
1654
1661
|
*
|
|
1655
1662
|
* The same {@link GObject.Object} instance may not appear more than once in a {@link Gio.ListModel}.
|
|
1656
1663
|
* @param position the position of the item to fetch
|
|
1664
|
+
* @since 2.44
|
|
1657
1665
|
* @virtual
|
|
1658
1666
|
*/
|
|
1659
1667
|
vfunc_get_item(position: number): A | null;
|
|
@@ -1667,6 +1675,7 @@ export namespace Gcr {
|
|
|
1667
1675
|
*
|
|
1668
1676
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
1669
1677
|
* model.
|
|
1678
|
+
* @since 2.44
|
|
1670
1679
|
* @virtual
|
|
1671
1680
|
*/
|
|
1672
1681
|
vfunc_get_item_type(): GObject.GType;
|
|
@@ -1677,6 +1686,7 @@ export namespace Gcr {
|
|
|
1677
1686
|
* Depending on the model implementation, calling this function may be
|
|
1678
1687
|
* less efficient than iterating the list with increasing values for
|
|
1679
1688
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
1689
|
+
* @since 2.44
|
|
1680
1690
|
* @virtual
|
|
1681
1691
|
*/
|
|
1682
1692
|
vfunc_get_n_items(): number;
|
|
@@ -1915,6 +1925,7 @@ export namespace Gcr {
|
|
|
1915
1925
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
1916
1926
|
* model.
|
|
1917
1927
|
* @returns the {@link GObject.GType} of the items contained in `list`.
|
|
1928
|
+
* @since 2.44
|
|
1918
1929
|
*/
|
|
1919
1930
|
get_item_type(): GObject.GType;
|
|
1920
1931
|
|
|
@@ -1925,6 +1936,7 @@ export namespace Gcr {
|
|
|
1925
1936
|
* less efficient than iterating the list with increasing values for
|
|
1926
1937
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
1927
1938
|
* @returns the number of items in `list`.
|
|
1939
|
+
* @since 2.44
|
|
1928
1940
|
*/
|
|
1929
1941
|
get_n_items(): number;
|
|
1930
1942
|
|
|
@@ -1943,6 +1955,7 @@ export namespace Gcr {
|
|
|
1943
1955
|
* See also: `g_list_model_get_n_items()`
|
|
1944
1956
|
* @param position the position of the item to fetch
|
|
1945
1957
|
* @returns the object at `position`.
|
|
1958
|
+
* @since 2.44
|
|
1946
1959
|
*/
|
|
1947
1960
|
get_item(position: number): A | null;
|
|
1948
1961
|
|
|
@@ -1970,6 +1983,7 @@ export namespace Gcr {
|
|
|
1970
1983
|
* @param position the position at which `list` changed
|
|
1971
1984
|
* @param removed the number of items removed
|
|
1972
1985
|
* @param added the number of items added
|
|
1986
|
+
* @since 2.44
|
|
1973
1987
|
*/
|
|
1974
1988
|
items_changed(position: number, removed: number, added: number): void;
|
|
1975
1989
|
|
|
@@ -1982,6 +1996,7 @@ export namespace Gcr {
|
|
|
1982
1996
|
*
|
|
1983
1997
|
* The same {@link GObject.Object} instance may not appear more than once in a {@link Gio.ListModel}.
|
|
1984
1998
|
* @param position the position of the item to fetch
|
|
1999
|
+
* @since 2.44
|
|
1985
2000
|
* @virtual
|
|
1986
2001
|
*/
|
|
1987
2002
|
vfunc_get_item(position: number): A | null;
|
|
@@ -1995,6 +2010,7 @@ export namespace Gcr {
|
|
|
1995
2010
|
*
|
|
1996
2011
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
1997
2012
|
* model.
|
|
2013
|
+
* @since 2.44
|
|
1998
2014
|
* @virtual
|
|
1999
2015
|
*/
|
|
2000
2016
|
vfunc_get_item_type(): GObject.GType;
|
|
@@ -2005,6 +2021,7 @@ export namespace Gcr {
|
|
|
2005
2021
|
* Depending on the model implementation, calling this function may be
|
|
2006
2022
|
* less efficient than iterating the list with increasing values for
|
|
2007
2023
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
2024
|
+
* @since 2.44
|
|
2008
2025
|
* @virtual
|
|
2009
2026
|
*/
|
|
2010
2027
|
vfunc_get_n_items(): number;
|
|
@@ -2100,6 +2117,7 @@ export namespace Gcr {
|
|
|
2100
2117
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
2101
2118
|
* model.
|
|
2102
2119
|
* @returns the {@link GObject.GType} of the items contained in `list`.
|
|
2120
|
+
* @since 2.44
|
|
2103
2121
|
*/
|
|
2104
2122
|
get_item_type(): GObject.GType;
|
|
2105
2123
|
|
|
@@ -2110,6 +2128,7 @@ export namespace Gcr {
|
|
|
2110
2128
|
* less efficient than iterating the list with increasing values for
|
|
2111
2129
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
2112
2130
|
* @returns the number of items in `list`.
|
|
2131
|
+
* @since 2.44
|
|
2113
2132
|
*/
|
|
2114
2133
|
get_n_items(): number;
|
|
2115
2134
|
|
|
@@ -2128,6 +2147,7 @@ export namespace Gcr {
|
|
|
2128
2147
|
* See also: `g_list_model_get_n_items()`
|
|
2129
2148
|
* @param position the position of the item to fetch
|
|
2130
2149
|
* @returns the object at `position`.
|
|
2150
|
+
* @since 2.44
|
|
2131
2151
|
*/
|
|
2132
2152
|
get_item(position: number): A | null;
|
|
2133
2153
|
|
|
@@ -2155,6 +2175,7 @@ export namespace Gcr {
|
|
|
2155
2175
|
* @param position the position at which `list` changed
|
|
2156
2176
|
* @param removed the number of items removed
|
|
2157
2177
|
* @param added the number of items added
|
|
2178
|
+
* @since 2.44
|
|
2158
2179
|
*/
|
|
2159
2180
|
items_changed(position: number, removed: number, added: number): void;
|
|
2160
2181
|
|
|
@@ -2167,6 +2188,7 @@ export namespace Gcr {
|
|
|
2167
2188
|
*
|
|
2168
2189
|
* The same {@link GObject.Object} instance may not appear more than once in a {@link Gio.ListModel}.
|
|
2169
2190
|
* @param position the position of the item to fetch
|
|
2191
|
+
* @since 2.44
|
|
2170
2192
|
* @virtual
|
|
2171
2193
|
*/
|
|
2172
2194
|
vfunc_get_item(position: number): A | null;
|
|
@@ -2180,6 +2202,7 @@ export namespace Gcr {
|
|
|
2180
2202
|
*
|
|
2181
2203
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
2182
2204
|
* model.
|
|
2205
|
+
* @since 2.44
|
|
2183
2206
|
* @virtual
|
|
2184
2207
|
*/
|
|
2185
2208
|
vfunc_get_item_type(): GObject.GType;
|
|
@@ -2190,6 +2213,7 @@ export namespace Gcr {
|
|
|
2190
2213
|
* Depending on the model implementation, calling this function may be
|
|
2191
2214
|
* less efficient than iterating the list with increasing values for
|
|
2192
2215
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
2216
|
+
* @since 2.44
|
|
2193
2217
|
* @virtual
|
|
2194
2218
|
*/
|
|
2195
2219
|
vfunc_get_n_items(): number;
|
|
@@ -2393,6 +2417,7 @@ export namespace Gcr {
|
|
|
2393
2417
|
* Looks for an extension with the given OID.
|
|
2394
2418
|
* @param oid The OID of the certificate extension
|
|
2395
2419
|
* @returns The certificate extension with the given OID, or `null` if not found.
|
|
2420
|
+
* @since 4.3.90
|
|
2396
2421
|
*/
|
|
2397
2422
|
find_by_oid(oid: string): CertificateExtension | null;
|
|
2398
2423
|
|
|
@@ -2415,6 +2440,7 @@ export namespace Gcr {
|
|
|
2415
2440
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
2416
2441
|
* model.
|
|
2417
2442
|
* @returns the {@link GObject.GType} of the items contained in `list`.
|
|
2443
|
+
* @since 2.44
|
|
2418
2444
|
*/
|
|
2419
2445
|
get_item_type(): GObject.GType;
|
|
2420
2446
|
|
|
@@ -2425,6 +2451,7 @@ export namespace Gcr {
|
|
|
2425
2451
|
* less efficient than iterating the list with increasing values for
|
|
2426
2452
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
2427
2453
|
* @returns the number of items in `list`.
|
|
2454
|
+
* @since 2.44
|
|
2428
2455
|
*/
|
|
2429
2456
|
get_n_items(): number;
|
|
2430
2457
|
|
|
@@ -2443,6 +2470,7 @@ export namespace Gcr {
|
|
|
2443
2470
|
* See also: `g_list_model_get_n_items()`
|
|
2444
2471
|
* @param position the position of the item to fetch
|
|
2445
2472
|
* @returns the object at `position`.
|
|
2473
|
+
* @since 2.44
|
|
2446
2474
|
*/
|
|
2447
2475
|
get_item(position: number): A | null;
|
|
2448
2476
|
|
|
@@ -2470,6 +2498,7 @@ export namespace Gcr {
|
|
|
2470
2498
|
* @param position the position at which `list` changed
|
|
2471
2499
|
* @param removed the number of items removed
|
|
2472
2500
|
* @param added the number of items added
|
|
2501
|
+
* @since 2.44
|
|
2473
2502
|
*/
|
|
2474
2503
|
items_changed(position: number, removed: number, added: number): void;
|
|
2475
2504
|
|
|
@@ -2482,6 +2511,7 @@ export namespace Gcr {
|
|
|
2482
2511
|
*
|
|
2483
2512
|
* The same {@link GObject.Object} instance may not appear more than once in a {@link Gio.ListModel}.
|
|
2484
2513
|
* @param position the position of the item to fetch
|
|
2514
|
+
* @since 2.44
|
|
2485
2515
|
* @virtual
|
|
2486
2516
|
*/
|
|
2487
2517
|
vfunc_get_item(position: number): A | null;
|
|
@@ -2495,6 +2525,7 @@ export namespace Gcr {
|
|
|
2495
2525
|
*
|
|
2496
2526
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
2497
2527
|
* model.
|
|
2528
|
+
* @since 2.44
|
|
2498
2529
|
* @virtual
|
|
2499
2530
|
*/
|
|
2500
2531
|
vfunc_get_item_type(): GObject.GType;
|
|
@@ -2505,6 +2536,7 @@ export namespace Gcr {
|
|
|
2505
2536
|
* Depending on the model implementation, calling this function may be
|
|
2506
2537
|
* less efficient than iterating the list with increasing values for
|
|
2507
2538
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
2539
|
+
* @since 2.44
|
|
2508
2540
|
* @virtual
|
|
2509
2541
|
*/
|
|
2510
2542
|
vfunc_get_n_items(): number;
|
|
@@ -2581,6 +2613,7 @@ export namespace Gcr {
|
|
|
2581
2613
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
2582
2614
|
* model.
|
|
2583
2615
|
* @returns the {@link GObject.GType} of the items contained in `list`.
|
|
2616
|
+
* @since 2.44
|
|
2584
2617
|
*/
|
|
2585
2618
|
get_item_type(): GObject.GType;
|
|
2586
2619
|
|
|
@@ -2591,6 +2624,7 @@ export namespace Gcr {
|
|
|
2591
2624
|
* less efficient than iterating the list with increasing values for
|
|
2592
2625
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
2593
2626
|
* @returns the number of items in `list`.
|
|
2627
|
+
* @since 2.44
|
|
2594
2628
|
*/
|
|
2595
2629
|
get_n_items(): number;
|
|
2596
2630
|
|
|
@@ -2609,6 +2643,7 @@ export namespace Gcr {
|
|
|
2609
2643
|
* See also: `g_list_model_get_n_items()`
|
|
2610
2644
|
* @param position the position of the item to fetch
|
|
2611
2645
|
* @returns the object at `position`.
|
|
2646
|
+
* @since 2.44
|
|
2612
2647
|
*/
|
|
2613
2648
|
get_item(position: number): A | null;
|
|
2614
2649
|
|
|
@@ -2636,6 +2671,7 @@ export namespace Gcr {
|
|
|
2636
2671
|
* @param position the position at which `list` changed
|
|
2637
2672
|
* @param removed the number of items removed
|
|
2638
2673
|
* @param added the number of items added
|
|
2674
|
+
* @since 2.44
|
|
2639
2675
|
*/
|
|
2640
2676
|
items_changed(position: number, removed: number, added: number): void;
|
|
2641
2677
|
|
|
@@ -2648,6 +2684,7 @@ export namespace Gcr {
|
|
|
2648
2684
|
*
|
|
2649
2685
|
* The same {@link GObject.Object} instance may not appear more than once in a {@link Gio.ListModel}.
|
|
2650
2686
|
* @param position the position of the item to fetch
|
|
2687
|
+
* @since 2.44
|
|
2651
2688
|
* @virtual
|
|
2652
2689
|
*/
|
|
2653
2690
|
vfunc_get_item(position: number): A | null;
|
|
@@ -2661,6 +2698,7 @@ export namespace Gcr {
|
|
|
2661
2698
|
*
|
|
2662
2699
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
2663
2700
|
* model.
|
|
2701
|
+
* @since 2.44
|
|
2664
2702
|
* @virtual
|
|
2665
2703
|
*/
|
|
2666
2704
|
vfunc_get_item_type(): GObject.GType;
|
|
@@ -2671,6 +2709,7 @@ export namespace Gcr {
|
|
|
2671
2709
|
* Depending on the model implementation, calling this function may be
|
|
2672
2710
|
* less efficient than iterating the list with increasing values for
|
|
2673
2711
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
2712
|
+
* @since 2.44
|
|
2674
2713
|
* @virtual
|
|
2675
2714
|
*/
|
|
2676
2715
|
vfunc_get_n_items(): number;
|
|
@@ -2901,6 +2940,7 @@ export namespace Gcr {
|
|
|
2901
2940
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
2902
2941
|
* model.
|
|
2903
2942
|
* @returns the {@link GObject.GType} of the items contained in `list`.
|
|
2943
|
+
* @since 2.44
|
|
2904
2944
|
*/
|
|
2905
2945
|
get_item_type(): GObject.GType;
|
|
2906
2946
|
|
|
@@ -2911,6 +2951,7 @@ export namespace Gcr {
|
|
|
2911
2951
|
* less efficient than iterating the list with increasing values for
|
|
2912
2952
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
2913
2953
|
* @returns the number of items in `list`.
|
|
2954
|
+
* @since 2.44
|
|
2914
2955
|
*/
|
|
2915
2956
|
get_n_items(): number;
|
|
2916
2957
|
|
|
@@ -2929,6 +2970,7 @@ export namespace Gcr {
|
|
|
2929
2970
|
* See also: `g_list_model_get_n_items()`
|
|
2930
2971
|
* @param position the position of the item to fetch
|
|
2931
2972
|
* @returns the object at `position`.
|
|
2973
|
+
* @since 2.44
|
|
2932
2974
|
*/
|
|
2933
2975
|
get_item(position: number): A | null;
|
|
2934
2976
|
|
|
@@ -2956,6 +2998,7 @@ export namespace Gcr {
|
|
|
2956
2998
|
* @param position the position at which `list` changed
|
|
2957
2999
|
* @param removed the number of items removed
|
|
2958
3000
|
* @param added the number of items added
|
|
3001
|
+
* @since 2.44
|
|
2959
3002
|
*/
|
|
2960
3003
|
items_changed(position: number, removed: number, added: number): void;
|
|
2961
3004
|
|
|
@@ -2968,6 +3011,7 @@ export namespace Gcr {
|
|
|
2968
3011
|
*
|
|
2969
3012
|
* The same {@link GObject.Object} instance may not appear more than once in a {@link Gio.ListModel}.
|
|
2970
3013
|
* @param position the position of the item to fetch
|
|
3014
|
+
* @since 2.44
|
|
2971
3015
|
* @virtual
|
|
2972
3016
|
*/
|
|
2973
3017
|
vfunc_get_item(position: number): A | null;
|
|
@@ -2981,6 +3025,7 @@ export namespace Gcr {
|
|
|
2981
3025
|
*
|
|
2982
3026
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
2983
3027
|
* model.
|
|
3028
|
+
* @since 2.44
|
|
2984
3029
|
* @virtual
|
|
2985
3030
|
*/
|
|
2986
3031
|
vfunc_get_item_type(): GObject.GType;
|
|
@@ -2991,6 +3036,7 @@ export namespace Gcr {
|
|
|
2991
3036
|
* Depending on the model implementation, calling this function may be
|
|
2992
3037
|
* less efficient than iterating the list with increasing values for
|
|
2993
3038
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
3039
|
+
* @since 2.44
|
|
2994
3040
|
* @virtual
|
|
2995
3041
|
*/
|
|
2996
3042
|
vfunc_get_n_items(): number;
|
|
@@ -3514,6 +3560,7 @@ export namespace Gcr {
|
|
|
3514
3560
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
3515
3561
|
* model.
|
|
3516
3562
|
* @returns the {@link GObject.GType} of the items contained in `list`.
|
|
3563
|
+
* @since 2.44
|
|
3517
3564
|
*/
|
|
3518
3565
|
get_item_type(): GObject.GType;
|
|
3519
3566
|
|
|
@@ -3524,6 +3571,7 @@ export namespace Gcr {
|
|
|
3524
3571
|
* less efficient than iterating the list with increasing values for
|
|
3525
3572
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
3526
3573
|
* @returns the number of items in `list`.
|
|
3574
|
+
* @since 2.44
|
|
3527
3575
|
*/
|
|
3528
3576
|
get_n_items(): number;
|
|
3529
3577
|
|
|
@@ -3542,6 +3590,7 @@ export namespace Gcr {
|
|
|
3542
3590
|
* See also: `g_list_model_get_n_items()`
|
|
3543
3591
|
* @param position the position of the item to fetch
|
|
3544
3592
|
* @returns the object at `position`.
|
|
3593
|
+
* @since 2.44
|
|
3545
3594
|
*/
|
|
3546
3595
|
get_item(position: number): A | null;
|
|
3547
3596
|
|
|
@@ -3569,6 +3618,7 @@ export namespace Gcr {
|
|
|
3569
3618
|
* @param position the position at which `list` changed
|
|
3570
3619
|
* @param removed the number of items removed
|
|
3571
3620
|
* @param added the number of items added
|
|
3621
|
+
* @since 2.44
|
|
3572
3622
|
*/
|
|
3573
3623
|
items_changed(position: number, removed: number, added: number): void;
|
|
3574
3624
|
|
|
@@ -3581,6 +3631,7 @@ export namespace Gcr {
|
|
|
3581
3631
|
*
|
|
3582
3632
|
* The same {@link GObject.Object} instance may not appear more than once in a {@link Gio.ListModel}.
|
|
3583
3633
|
* @param position the position of the item to fetch
|
|
3634
|
+
* @since 2.44
|
|
3584
3635
|
* @virtual
|
|
3585
3636
|
*/
|
|
3586
3637
|
vfunc_get_item(position: number): A | null;
|
|
@@ -3594,6 +3645,7 @@ export namespace Gcr {
|
|
|
3594
3645
|
*
|
|
3595
3646
|
* The item type of a {@link Gio.ListModel} can not change during the life of the
|
|
3596
3647
|
* model.
|
|
3648
|
+
* @since 2.44
|
|
3597
3649
|
* @virtual
|
|
3598
3650
|
*/
|
|
3599
3651
|
vfunc_get_item_type(): GObject.GType;
|
|
@@ -3604,6 +3656,7 @@ export namespace Gcr {
|
|
|
3604
3656
|
* Depending on the model implementation, calling this function may be
|
|
3605
3657
|
* less efficient than iterating the list with increasing values for
|
|
3606
3658
|
* `position` until `g_list_model_get_item()` returns `null`.
|
|
3659
|
+
* @since 2.44
|
|
3607
3660
|
* @virtual
|
|
3608
3661
|
*/
|
|
3609
3662
|
vfunc_get_n_items(): number;
|
|
@@ -4335,6 +4388,7 @@ export namespace Gcr {
|
|
|
4335
4388
|
* Creates a {@link CertificateExtensionList} that can be used to inspect the
|
|
4336
4389
|
* extensions of this certificate.
|
|
4337
4390
|
* @returns The certificate's extensions
|
|
4391
|
+
* @since 4.3.90
|
|
4338
4392
|
*/
|
|
4339
4393
|
list_extensions(): CertificateExtensionList;
|
|
4340
4394
|
|
|
@@ -4846,6 +4900,7 @@ export namespace Gcr {
|
|
|
4846
4900
|
* Creates a {@link CertificateExtensionList} that can be used to inspect the
|
|
4847
4901
|
* extensions of this certificate.
|
|
4848
4902
|
* @returns The certificate's extensions
|
|
4903
|
+
* @since 4.3.90
|
|
4849
4904
|
*/
|
|
4850
4905
|
list_extensions(): CertificateExtensionList;
|
|
4851
4906
|
|
|
@@ -5857,6 +5912,7 @@ export namespace Gcr {
|
|
|
5857
5912
|
* any interface methods.
|
|
5858
5913
|
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
|
|
5859
5914
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
5915
|
+
* @since 2.22
|
|
5860
5916
|
*/
|
|
5861
5917
|
init_async(io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>;
|
|
5862
5918
|
|
|
@@ -5900,6 +5956,7 @@ export namespace Gcr {
|
|
|
5900
5956
|
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
|
|
5901
5957
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
5902
5958
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
|
|
5959
|
+
* @since 2.22
|
|
5903
5960
|
*/
|
|
5904
5961
|
init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
5905
5962
|
|
|
@@ -5943,6 +6000,7 @@ export namespace Gcr {
|
|
|
5943
6000
|
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
|
|
5944
6001
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
5945
6002
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
|
|
6003
|
+
* @since 2.22
|
|
5946
6004
|
*/
|
|
5947
6005
|
init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
|
|
5948
6006
|
|
|
@@ -5951,6 +6009,7 @@ export namespace Gcr {
|
|
|
5951
6009
|
* See `g_async_initable_init_async()`.
|
|
5952
6010
|
* @param res a {@link Gio.AsyncResult}.
|
|
5953
6011
|
* @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
|
|
6012
|
+
* @since 2.22
|
|
5954
6013
|
*/
|
|
5955
6014
|
init_finish(res: Gio.AsyncResult): boolean;
|
|
5956
6015
|
|
|
@@ -5959,6 +6018,7 @@ export namespace Gcr {
|
|
|
5959
6018
|
* calls, returning the created object or `null` on error.
|
|
5960
6019
|
* @param res the {@link Gio.AsyncResult} from the callback
|
|
5961
6020
|
* @returns a newly created {@link GObject.Object}, or `null` on error. Free with `g_object_unref()`.
|
|
6021
|
+
* @since 2.22
|
|
5962
6022
|
*/
|
|
5963
6023
|
new_finish(res: Gio.AsyncResult): SystemPrompt;
|
|
5964
6024
|
|
|
@@ -6002,6 +6062,7 @@ export namespace Gcr {
|
|
|
6002
6062
|
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
|
|
6003
6063
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
6004
6064
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
|
|
6065
|
+
* @since 2.22
|
|
6005
6066
|
* @virtual
|
|
6006
6067
|
*/
|
|
6007
6068
|
vfunc_init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
@@ -6010,6 +6071,7 @@ export namespace Gcr {
|
|
|
6010
6071
|
* Finishes asynchronous initialization and returns the result.
|
|
6011
6072
|
* See `g_async_initable_init_async()`.
|
|
6012
6073
|
* @param res a {@link Gio.AsyncResult}.
|
|
6074
|
+
* @since 2.22
|
|
6013
6075
|
* @virtual
|
|
6014
6076
|
*/
|
|
6015
6077
|
vfunc_init_finish(res: Gio.AsyncResult): boolean;
|
|
@@ -6055,6 +6117,7 @@ export namespace Gcr {
|
|
|
6055
6117
|
* instance.
|
|
6056
6118
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
6057
6119
|
* @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
|
|
6120
|
+
* @since 2.22
|
|
6058
6121
|
*/
|
|
6059
6122
|
init(cancellable: Gio.Cancellable | null): boolean;
|
|
6060
6123
|
|
|
@@ -6098,6 +6161,7 @@ export namespace Gcr {
|
|
|
6098
6161
|
* on the result of `g_object_new()`, regardless of whether it is in fact a new
|
|
6099
6162
|
* instance.
|
|
6100
6163
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
6164
|
+
* @since 2.22
|
|
6101
6165
|
* @virtual
|
|
6102
6166
|
*/
|
|
6103
6167
|
vfunc_init(cancellable: Gio.Cancellable | null): boolean;
|
|
@@ -6873,6 +6937,7 @@ export namespace Gcr {
|
|
|
6873
6937
|
* Creates a {@link CertificateExtensionList} that can be used to inspect the
|
|
6874
6938
|
* extensions of this certificate.
|
|
6875
6939
|
* @returns The certificate's extensions
|
|
6940
|
+
* @since 4.3.90
|
|
6876
6941
|
*/
|
|
6877
6942
|
list_extensions(): CertificateExtensionList;
|
|
6878
6943
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gcr-4",
|
|
3
|
-
"version": "4.4.0
|
|
3
|
+
"version": "4.4.0",
|
|
4
|
+
"libraryVersion": "4.4.0",
|
|
4
5
|
"description": "GJS TypeScript type definitions for Gcr-4, generated from library version 4.4.0",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"module": "gcr-4.js",
|
|
@@ -31,12 +32,12 @@
|
|
|
31
32
|
"test": "tsc --project tsconfig.json"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
34
|
-
"@girs/gjs": "4.0
|
|
35
|
-
"@girs/gio-2.0": "
|
|
36
|
-
"@girs/gobject-2.0": "
|
|
37
|
-
"@girs/glib-2.0": "
|
|
38
|
-
"@girs/gmodule-2.0": "
|
|
39
|
-
"@girs/gck-2": "4.4.0
|
|
35
|
+
"@girs/gjs": "^4.4.0",
|
|
36
|
+
"@girs/gio-2.0": "^4.4.0",
|
|
37
|
+
"@girs/gobject-2.0": "^4.4.0",
|
|
38
|
+
"@girs/glib-2.0": "^4.4.0",
|
|
39
|
+
"@girs/gmodule-2.0": "^4.4.0",
|
|
40
|
+
"@girs/gck-2": "^4.4.0" },
|
|
40
41
|
"devDependencies": {
|
|
41
42
|
"typescript": "*"
|
|
42
43
|
},
|