@girs/fprint-2.0 2.0.0-4.0.0-beta.21 → 2.0.0-4.0.0-beta.24
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 +1 -1
- package/fprint-2.0.d.ts +272 -51
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for FPrint-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.
|
|
8
|
+
GJS TypeScript type definitions for FPrint-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.24.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/fprint-2.0.d.ts
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
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, ...
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
+
import '@girs/gjs';
|
|
11
|
+
|
|
10
12
|
// Module dependencies
|
|
11
13
|
import type Gio from '@girs/gio-2.0';
|
|
12
14
|
import type GObject from '@girs/gobject-2.0';
|
|
@@ -329,14 +331,10 @@ export namespace FPrint {
|
|
|
329
331
|
PRESENT,
|
|
330
332
|
}
|
|
331
333
|
namespace Context {
|
|
332
|
-
// Signal
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
interface DeviceRemoved {
|
|
339
|
-
(device: Device): void;
|
|
334
|
+
// Signal signatures
|
|
335
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
336
|
+
'device-added': (arg0: Device) => void;
|
|
337
|
+
'device-removed': (arg0: Device) => void;
|
|
340
338
|
}
|
|
341
339
|
|
|
342
340
|
// Constructor properties interface
|
|
@@ -347,6 +345,15 @@ export namespace FPrint {
|
|
|
347
345
|
class Context extends GObject.Object {
|
|
348
346
|
static $gtype: GObject.GType<Context>;
|
|
349
347
|
|
|
348
|
+
/**
|
|
349
|
+
* Compile-time signal type information.
|
|
350
|
+
*
|
|
351
|
+
* This instance property is generated only for TypeScript type checking.
|
|
352
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
353
|
+
* @internal
|
|
354
|
+
*/
|
|
355
|
+
$signals: Context.SignalSignatures;
|
|
356
|
+
|
|
350
357
|
// Constructors
|
|
351
358
|
|
|
352
359
|
constructor(properties?: Partial<Context.ConstructorProps>, ...args: any[]);
|
|
@@ -357,15 +364,21 @@ export namespace FPrint {
|
|
|
357
364
|
|
|
358
365
|
// Signals
|
|
359
366
|
|
|
360
|
-
connect
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
367
|
+
connect<K extends keyof Context.SignalSignatures>(
|
|
368
|
+
signal: K,
|
|
369
|
+
callback: GObject.SignalCallback<this, Context.SignalSignatures[K]>,
|
|
370
|
+
): number;
|
|
371
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
372
|
+
connect_after<K extends keyof Context.SignalSignatures>(
|
|
373
|
+
signal: K,
|
|
374
|
+
callback: GObject.SignalCallback<this, Context.SignalSignatures[K]>,
|
|
375
|
+
): number;
|
|
376
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
377
|
+
emit<K extends keyof Context.SignalSignatures>(
|
|
378
|
+
signal: K,
|
|
379
|
+
...args: GObject.GjsParameters<Context.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
380
|
+
): void;
|
|
381
|
+
emit(signal: string, ...args: any[]): void;
|
|
369
382
|
|
|
370
383
|
// Virtual methods
|
|
371
384
|
|
|
@@ -396,10 +409,23 @@ export namespace FPrint {
|
|
|
396
409
|
}
|
|
397
410
|
|
|
398
411
|
namespace Device {
|
|
399
|
-
// Signal
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
(
|
|
412
|
+
// Signal signatures
|
|
413
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
414
|
+
removed: () => void;
|
|
415
|
+
'notify::device-id': (pspec: GObject.ParamSpec) => void;
|
|
416
|
+
'notify::driver': (pspec: GObject.ParamSpec) => void;
|
|
417
|
+
'notify::finger-status': (pspec: GObject.ParamSpec) => void;
|
|
418
|
+
'notify::fpi-driver-data': (pspec: GObject.ParamSpec) => void;
|
|
419
|
+
'notify::fpi-environ': (pspec: GObject.ParamSpec) => void;
|
|
420
|
+
'notify::fpi-udev-data-hidraw': (pspec: GObject.ParamSpec) => void;
|
|
421
|
+
'notify::fpi-udev-data-spidev': (pspec: GObject.ParamSpec) => void;
|
|
422
|
+
'notify::fpi-usb-device': (pspec: GObject.ParamSpec) => void;
|
|
423
|
+
'notify::name': (pspec: GObject.ParamSpec) => void;
|
|
424
|
+
'notify::nr-enroll-stages': (pspec: GObject.ParamSpec) => void;
|
|
425
|
+
'notify::open': (pspec: GObject.ParamSpec) => void;
|
|
426
|
+
'notify::removed': (pspec: GObject.ParamSpec) => void;
|
|
427
|
+
'notify::scan-type': (pspec: GObject.ParamSpec) => void;
|
|
428
|
+
'notify::temperature': (pspec: GObject.ParamSpec) => void;
|
|
403
429
|
}
|
|
404
430
|
|
|
405
431
|
// Constructor properties interface
|
|
@@ -460,6 +486,15 @@ export namespace FPrint {
|
|
|
460
486
|
get scanType(): ScanType;
|
|
461
487
|
get temperature(): Temperature;
|
|
462
488
|
|
|
489
|
+
/**
|
|
490
|
+
* Compile-time signal type information.
|
|
491
|
+
*
|
|
492
|
+
* This instance property is generated only for TypeScript type checking.
|
|
493
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
494
|
+
* @internal
|
|
495
|
+
*/
|
|
496
|
+
$signals: Device.SignalSignatures;
|
|
497
|
+
|
|
463
498
|
// Constructors
|
|
464
499
|
|
|
465
500
|
constructor(properties?: Partial<Device.ConstructorProps>, ...args: any[]);
|
|
@@ -468,12 +503,21 @@ export namespace FPrint {
|
|
|
468
503
|
|
|
469
504
|
// Signals
|
|
470
505
|
|
|
471
|
-
connect
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
506
|
+
connect<K extends keyof Device.SignalSignatures>(
|
|
507
|
+
signal: K,
|
|
508
|
+
callback: GObject.SignalCallback<this, Device.SignalSignatures[K]>,
|
|
509
|
+
): number;
|
|
510
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
511
|
+
connect_after<K extends keyof Device.SignalSignatures>(
|
|
512
|
+
signal: K,
|
|
513
|
+
callback: GObject.SignalCallback<this, Device.SignalSignatures[K]>,
|
|
514
|
+
): number;
|
|
515
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
516
|
+
emit<K extends keyof Device.SignalSignatures>(
|
|
517
|
+
signal: K,
|
|
518
|
+
...args: GObject.GjsParameters<Device.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
519
|
+
): void;
|
|
520
|
+
emit(signal: string, ...args: any[]): void;
|
|
477
521
|
|
|
478
522
|
// Methods
|
|
479
523
|
|
|
@@ -1415,7 +1459,21 @@ export namespace FPrint {
|
|
|
1415
1459
|
* @returns the data if found, or %NULL if no such data exists.
|
|
1416
1460
|
*/
|
|
1417
1461
|
get_data(key: string): any | null;
|
|
1418
|
-
|
|
1462
|
+
/**
|
|
1463
|
+
* Gets a property of an object.
|
|
1464
|
+
*
|
|
1465
|
+
* The value can be:
|
|
1466
|
+
* - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
|
|
1467
|
+
* - a GObject.Value initialized with the expected type of the property
|
|
1468
|
+
* - a GObject.Value initialized with a type to which the expected type of the property can be transformed
|
|
1469
|
+
*
|
|
1470
|
+
* In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
|
|
1471
|
+
*
|
|
1472
|
+
* Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
|
|
1473
|
+
* @param property_name The name of the property to get
|
|
1474
|
+
* @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
|
|
1475
|
+
*/
|
|
1476
|
+
get_property(property_name: string, value: GObject.Value | any): any;
|
|
1419
1477
|
/**
|
|
1420
1478
|
* This function gets back user data pointers stored via
|
|
1421
1479
|
* g_object_set_qdata().
|
|
@@ -1543,7 +1601,12 @@ export namespace FPrint {
|
|
|
1543
1601
|
* @param data data to associate with that key
|
|
1544
1602
|
*/
|
|
1545
1603
|
set_data(key: string, data?: any | null): void;
|
|
1546
|
-
|
|
1604
|
+
/**
|
|
1605
|
+
* Sets a property on an object.
|
|
1606
|
+
* @param property_name The name of the property to set
|
|
1607
|
+
* @param value The value to set the property to
|
|
1608
|
+
*/
|
|
1609
|
+
set_property(property_name: string, value: GObject.Value | any): void;
|
|
1547
1610
|
/**
|
|
1548
1611
|
* Remove a specified datum from the object's data associations,
|
|
1549
1612
|
* without invoking the association's destroy handler.
|
|
@@ -1693,14 +1756,40 @@ export namespace FPrint {
|
|
|
1693
1756
|
* @param pspec
|
|
1694
1757
|
*/
|
|
1695
1758
|
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
1759
|
+
/**
|
|
1760
|
+
* Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
|
|
1761
|
+
* @param id Handler ID of the handler to be disconnected
|
|
1762
|
+
*/
|
|
1696
1763
|
disconnect(id: number): void;
|
|
1764
|
+
/**
|
|
1765
|
+
* Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
|
|
1766
|
+
* @param properties Object containing the properties to set
|
|
1767
|
+
*/
|
|
1697
1768
|
set(properties: { [key: string]: any }): void;
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1769
|
+
/**
|
|
1770
|
+
* Blocks a handler of an instance so it will not be called during any signal emissions
|
|
1771
|
+
* @param id Handler ID of the handler to be blocked
|
|
1772
|
+
*/
|
|
1773
|
+
block_signal_handler(id: number): void;
|
|
1774
|
+
/**
|
|
1775
|
+
* Unblocks a handler so it will be called again during any signal emissions
|
|
1776
|
+
* @param id Handler ID of the handler to be unblocked
|
|
1777
|
+
*/
|
|
1778
|
+
unblock_signal_handler(id: number): void;
|
|
1779
|
+
/**
|
|
1780
|
+
* Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
|
|
1781
|
+
* @param detailedName Name of the signal to stop emission of
|
|
1782
|
+
*/
|
|
1783
|
+
stop_emission_by_name(detailedName: string): void;
|
|
1701
1784
|
}
|
|
1702
1785
|
|
|
1703
1786
|
namespace Image {
|
|
1787
|
+
// Signal signatures
|
|
1788
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
1789
|
+
'notify::height': (pspec: GObject.ParamSpec) => void;
|
|
1790
|
+
'notify::width': (pspec: GObject.ParamSpec) => void;
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1704
1793
|
// Constructor properties interface
|
|
1705
1794
|
|
|
1706
1795
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
@@ -1717,6 +1806,15 @@ export namespace FPrint {
|
|
|
1717
1806
|
get height(): number;
|
|
1718
1807
|
get width(): number;
|
|
1719
1808
|
|
|
1809
|
+
/**
|
|
1810
|
+
* Compile-time signal type information.
|
|
1811
|
+
*
|
|
1812
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1813
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1814
|
+
* @internal
|
|
1815
|
+
*/
|
|
1816
|
+
$signals: Image.SignalSignatures;
|
|
1817
|
+
|
|
1720
1818
|
// Constructors
|
|
1721
1819
|
|
|
1722
1820
|
constructor(properties?: Partial<Image.ConstructorProps>, ...args: any[]);
|
|
@@ -1725,6 +1823,24 @@ export namespace FPrint {
|
|
|
1725
1823
|
|
|
1726
1824
|
static ['new'](width: number, height: number): Image;
|
|
1727
1825
|
|
|
1826
|
+
// Signals
|
|
1827
|
+
|
|
1828
|
+
connect<K extends keyof Image.SignalSignatures>(
|
|
1829
|
+
signal: K,
|
|
1830
|
+
callback: GObject.SignalCallback<this, Image.SignalSignatures[K]>,
|
|
1831
|
+
): number;
|
|
1832
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1833
|
+
connect_after<K extends keyof Image.SignalSignatures>(
|
|
1834
|
+
signal: K,
|
|
1835
|
+
callback: GObject.SignalCallback<this, Image.SignalSignatures[K]>,
|
|
1836
|
+
): number;
|
|
1837
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1838
|
+
emit<K extends keyof Image.SignalSignatures>(
|
|
1839
|
+
signal: K,
|
|
1840
|
+
...args: GObject.GjsParameters<Image.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1841
|
+
): void;
|
|
1842
|
+
emit(signal: string, ...args: any[]): void;
|
|
1843
|
+
|
|
1728
1844
|
// Methods
|
|
1729
1845
|
|
|
1730
1846
|
/**
|
|
@@ -1794,10 +1910,23 @@ export namespace FPrint {
|
|
|
1794
1910
|
}
|
|
1795
1911
|
|
|
1796
1912
|
namespace ImageDevice {
|
|
1797
|
-
// Signal
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
(
|
|
1913
|
+
// Signal signatures
|
|
1914
|
+
interface SignalSignatures extends Device.SignalSignatures {
|
|
1915
|
+
'fpi-image-device-state-changed': (arg0: unknown) => void;
|
|
1916
|
+
'notify::device-id': (pspec: GObject.ParamSpec) => void;
|
|
1917
|
+
'notify::driver': (pspec: GObject.ParamSpec) => void;
|
|
1918
|
+
'notify::finger-status': (pspec: GObject.ParamSpec) => void;
|
|
1919
|
+
'notify::fpi-driver-data': (pspec: GObject.ParamSpec) => void;
|
|
1920
|
+
'notify::fpi-environ': (pspec: GObject.ParamSpec) => void;
|
|
1921
|
+
'notify::fpi-udev-data-hidraw': (pspec: GObject.ParamSpec) => void;
|
|
1922
|
+
'notify::fpi-udev-data-spidev': (pspec: GObject.ParamSpec) => void;
|
|
1923
|
+
'notify::fpi-usb-device': (pspec: GObject.ParamSpec) => void;
|
|
1924
|
+
'notify::name': (pspec: GObject.ParamSpec) => void;
|
|
1925
|
+
'notify::nr-enroll-stages': (pspec: GObject.ParamSpec) => void;
|
|
1926
|
+
'notify::open': (pspec: GObject.ParamSpec) => void;
|
|
1927
|
+
'notify::removed': (pspec: GObject.ParamSpec) => void;
|
|
1928
|
+
'notify::scan-type': (pspec: GObject.ParamSpec) => void;
|
|
1929
|
+
'notify::temperature': (pspec: GObject.ParamSpec) => void;
|
|
1801
1930
|
}
|
|
1802
1931
|
|
|
1803
1932
|
// Constructor properties interface
|
|
@@ -1808,6 +1937,15 @@ export namespace FPrint {
|
|
|
1808
1937
|
abstract class ImageDevice extends Device implements Gio.AsyncInitable<ImageDevice> {
|
|
1809
1938
|
static $gtype: GObject.GType<ImageDevice>;
|
|
1810
1939
|
|
|
1940
|
+
/**
|
|
1941
|
+
* Compile-time signal type information.
|
|
1942
|
+
*
|
|
1943
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1944
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1945
|
+
* @internal
|
|
1946
|
+
*/
|
|
1947
|
+
$signals: ImageDevice.SignalSignatures;
|
|
1948
|
+
|
|
1811
1949
|
// Constructors
|
|
1812
1950
|
|
|
1813
1951
|
constructor(properties?: Partial<ImageDevice.ConstructorProps>, ...args: any[]);
|
|
@@ -1816,18 +1954,21 @@ export namespace FPrint {
|
|
|
1816
1954
|
|
|
1817
1955
|
// Signals
|
|
1818
1956
|
|
|
1819
|
-
connect
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
connect(
|
|
1823
|
-
signal: 'fpi-image-device-state-changed',
|
|
1824
|
-
callback: (_source: this, new_state: unknown) => void,
|
|
1957
|
+
connect<K extends keyof ImageDevice.SignalSignatures>(
|
|
1958
|
+
signal: K,
|
|
1959
|
+
callback: GObject.SignalCallback<this, ImageDevice.SignalSignatures[K]>,
|
|
1825
1960
|
): number;
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1961
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1962
|
+
connect_after<K extends keyof ImageDevice.SignalSignatures>(
|
|
1963
|
+
signal: K,
|
|
1964
|
+
callback: GObject.SignalCallback<this, ImageDevice.SignalSignatures[K]>,
|
|
1829
1965
|
): number;
|
|
1830
|
-
|
|
1966
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1967
|
+
emit<K extends keyof ImageDevice.SignalSignatures>(
|
|
1968
|
+
signal: K,
|
|
1969
|
+
...args: GObject.GjsParameters<ImageDevice.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1970
|
+
): void;
|
|
1971
|
+
emit(signal: string, ...args: any[]): void;
|
|
1831
1972
|
|
|
1832
1973
|
// Inherited methods
|
|
1833
1974
|
/**
|
|
@@ -2146,7 +2287,21 @@ export namespace FPrint {
|
|
|
2146
2287
|
* @returns the data if found, or %NULL if no such data exists.
|
|
2147
2288
|
*/
|
|
2148
2289
|
get_data(key: string): any | null;
|
|
2149
|
-
|
|
2290
|
+
/**
|
|
2291
|
+
* Gets a property of an object.
|
|
2292
|
+
*
|
|
2293
|
+
* The value can be:
|
|
2294
|
+
* - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
|
|
2295
|
+
* - a GObject.Value initialized with the expected type of the property
|
|
2296
|
+
* - a GObject.Value initialized with a type to which the expected type of the property can be transformed
|
|
2297
|
+
*
|
|
2298
|
+
* In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
|
|
2299
|
+
*
|
|
2300
|
+
* Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
|
|
2301
|
+
* @param property_name The name of the property to get
|
|
2302
|
+
* @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
|
|
2303
|
+
*/
|
|
2304
|
+
get_property(property_name: string, value: GObject.Value | any): any;
|
|
2150
2305
|
/**
|
|
2151
2306
|
* This function gets back user data pointers stored via
|
|
2152
2307
|
* g_object_set_qdata().
|
|
@@ -2274,7 +2429,12 @@ export namespace FPrint {
|
|
|
2274
2429
|
* @param data data to associate with that key
|
|
2275
2430
|
*/
|
|
2276
2431
|
set_data(key: string, data?: any | null): void;
|
|
2277
|
-
|
|
2432
|
+
/**
|
|
2433
|
+
* Sets a property on an object.
|
|
2434
|
+
* @param property_name The name of the property to set
|
|
2435
|
+
* @param value The value to set the property to
|
|
2436
|
+
*/
|
|
2437
|
+
set_property(property_name: string, value: GObject.Value | any): void;
|
|
2278
2438
|
/**
|
|
2279
2439
|
* Remove a specified datum from the object's data associations,
|
|
2280
2440
|
* without invoking the association's destroy handler.
|
|
@@ -2424,14 +2584,48 @@ export namespace FPrint {
|
|
|
2424
2584
|
* @param pspec
|
|
2425
2585
|
*/
|
|
2426
2586
|
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
2587
|
+
/**
|
|
2588
|
+
* Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
|
|
2589
|
+
* @param id Handler ID of the handler to be disconnected
|
|
2590
|
+
*/
|
|
2427
2591
|
disconnect(id: number): void;
|
|
2592
|
+
/**
|
|
2593
|
+
* Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
|
|
2594
|
+
* @param properties Object containing the properties to set
|
|
2595
|
+
*/
|
|
2428
2596
|
set(properties: { [key: string]: any }): void;
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2597
|
+
/**
|
|
2598
|
+
* Blocks a handler of an instance so it will not be called during any signal emissions
|
|
2599
|
+
* @param id Handler ID of the handler to be blocked
|
|
2600
|
+
*/
|
|
2601
|
+
block_signal_handler(id: number): void;
|
|
2602
|
+
/**
|
|
2603
|
+
* Unblocks a handler so it will be called again during any signal emissions
|
|
2604
|
+
* @param id Handler ID of the handler to be unblocked
|
|
2605
|
+
*/
|
|
2606
|
+
unblock_signal_handler(id: number): void;
|
|
2607
|
+
/**
|
|
2608
|
+
* Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
|
|
2609
|
+
* @param detailedName Name of the signal to stop emission of
|
|
2610
|
+
*/
|
|
2611
|
+
stop_emission_by_name(detailedName: string): void;
|
|
2432
2612
|
}
|
|
2433
2613
|
|
|
2434
2614
|
namespace Print {
|
|
2615
|
+
// Signal signatures
|
|
2616
|
+
interface SignalSignatures extends GObject.InitiallyUnowned.SignalSignatures {
|
|
2617
|
+
'notify::description': (pspec: GObject.ParamSpec) => void;
|
|
2618
|
+
'notify::device-id': (pspec: GObject.ParamSpec) => void;
|
|
2619
|
+
'notify::device-stored': (pspec: GObject.ParamSpec) => void;
|
|
2620
|
+
'notify::driver': (pspec: GObject.ParamSpec) => void;
|
|
2621
|
+
'notify::enroll-date': (pspec: GObject.ParamSpec) => void;
|
|
2622
|
+
'notify::finger': (pspec: GObject.ParamSpec) => void;
|
|
2623
|
+
'notify::fpi-data': (pspec: GObject.ParamSpec) => void;
|
|
2624
|
+
'notify::fpi-prints': (pspec: GObject.ParamSpec) => void;
|
|
2625
|
+
'notify::image': (pspec: GObject.ParamSpec) => void;
|
|
2626
|
+
'notify::username': (pspec: GObject.ParamSpec) => void;
|
|
2627
|
+
}
|
|
2628
|
+
|
|
2435
2629
|
// Constructor properties interface
|
|
2436
2630
|
|
|
2437
2631
|
interface ConstructorProps extends GObject.InitiallyUnowned.ConstructorProps {
|
|
@@ -2483,6 +2677,15 @@ export namespace FPrint {
|
|
|
2483
2677
|
get username(): string;
|
|
2484
2678
|
set username(val: string);
|
|
2485
2679
|
|
|
2680
|
+
/**
|
|
2681
|
+
* Compile-time signal type information.
|
|
2682
|
+
*
|
|
2683
|
+
* This instance property is generated only for TypeScript type checking.
|
|
2684
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
2685
|
+
* @internal
|
|
2686
|
+
*/
|
|
2687
|
+
$signals: Print.SignalSignatures;
|
|
2688
|
+
|
|
2486
2689
|
// Constructors
|
|
2487
2690
|
|
|
2488
2691
|
constructor(properties?: Partial<Print.ConstructorProps>, ...args: any[]);
|
|
@@ -2491,6 +2694,24 @@ export namespace FPrint {
|
|
|
2491
2694
|
|
|
2492
2695
|
static ['new'](device: Device): Print;
|
|
2493
2696
|
|
|
2697
|
+
// Signals
|
|
2698
|
+
|
|
2699
|
+
connect<K extends keyof Print.SignalSignatures>(
|
|
2700
|
+
signal: K,
|
|
2701
|
+
callback: GObject.SignalCallback<this, Print.SignalSignatures[K]>,
|
|
2702
|
+
): number;
|
|
2703
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
2704
|
+
connect_after<K extends keyof Print.SignalSignatures>(
|
|
2705
|
+
signal: K,
|
|
2706
|
+
callback: GObject.SignalCallback<this, Print.SignalSignatures[K]>,
|
|
2707
|
+
): number;
|
|
2708
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
2709
|
+
emit<K extends keyof Print.SignalSignatures>(
|
|
2710
|
+
signal: K,
|
|
2711
|
+
...args: GObject.GjsParameters<Print.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
2712
|
+
): void;
|
|
2713
|
+
emit(signal: string, ...args: any[]): void;
|
|
2714
|
+
|
|
2494
2715
|
// Static methods
|
|
2495
2716
|
|
|
2496
2717
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/fprint-2.0",
|
|
3
|
-
"version": "2.0.0-4.0.0-beta.
|
|
3
|
+
"version": "2.0.0-4.0.0-beta.24",
|
|
4
4
|
"description": "GJS TypeScript type definitions for FPrint-2.0, generated from library version 2.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "fprint-2.0.js",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"test": "tsc --project tsconfig.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@girs/gio-2.0": "^2.
|
|
35
|
-
"@girs/gjs": "^4.0.0-beta.
|
|
36
|
-
"@girs/glib-2.0": "^2.
|
|
37
|
-
"@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.
|
|
38
|
-
"@girs/gobject-2.0": "^2.
|
|
39
|
-
"@girs/gusb-1.0": "^0.4.9-4.0.0-beta.
|
|
40
|
-
"@girs/json-1.0": "^1.10.7-4.0.0-beta.
|
|
34
|
+
"@girs/gio-2.0": "^2.84.2-4.0.0-beta.24",
|
|
35
|
+
"@girs/gjs": "^4.0.0-beta.24",
|
|
36
|
+
"@girs/glib-2.0": "^2.84.2-4.0.0-beta.24",
|
|
37
|
+
"@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.24",
|
|
38
|
+
"@girs/gobject-2.0": "^2.84.2-4.0.0-beta.24",
|
|
39
|
+
"@girs/gusb-1.0": "^0.4.9-4.0.0-beta.24",
|
|
40
|
+
"@girs/json-1.0": "^1.10.7-4.0.0-beta.24"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"typescript": "*"
|