@icanbwell/types 1.12.0 → 1.12.1
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/package.json +3 -3
- package/src/native-bridge.d.ts +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icanbwell/types",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.1",
|
|
4
4
|
"typedoc": {
|
|
5
5
|
"entryPoint": "./src/index.ts",
|
|
6
6
|
"tsconfig": "./tsconfig.lib.json"
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"import": "./index.js"
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
-
"repoVersion": "4.1
|
|
40
|
-
"description": "@icanbwell/types. repo version: 4.1
|
|
39
|
+
"repoVersion": "4.6.1",
|
|
40
|
+
"description": "@icanbwell/types. repo version: 4.6.1",
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"react-native": "0.x",
|
|
43
43
|
"react-native-biometrics": "3.x",
|
package/src/native-bridge.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type rnBiometrics from 'react-native-biometrics';
|
|
2
|
+
import { BiometryTypes } from 'react-native-biometrics';
|
|
2
3
|
import type TypedEmitter from 'typed-emitter';
|
|
3
4
|
import type { OnAuthSuccessEventKey, OnAuthSuccessEventData, ErrorEventKey, ErrorEventData } from './native-components';
|
|
4
5
|
import { openSettings, PermissionStatus } from 'react-native-permissions';
|
|
@@ -22,8 +23,13 @@ export interface IWebview {
|
|
|
22
23
|
reload(): void;
|
|
23
24
|
isWithin: boolean;
|
|
24
25
|
}
|
|
26
|
+
type IBiometryInformation = {
|
|
27
|
+
biometryType: keyof typeof BiometryTypes | undefined;
|
|
28
|
+
error: string | undefined;
|
|
29
|
+
};
|
|
25
30
|
export interface IBiometrics {
|
|
26
31
|
isAvailable(): Promise<boolean>;
|
|
32
|
+
getBiometryInformation(): Promise<IBiometryInformation>;
|
|
27
33
|
biometricKeysExist(): ReturnType<Awaited<rnBiometrics['biometricKeysExist']>>;
|
|
28
34
|
createKeys(): ReturnType<Awaited<rnBiometrics['createKeys']>>;
|
|
29
35
|
createSignature(createSignatureOptions: Parameters<rnBiometrics['createSignature']>[0]): ReturnType<Awaited<rnBiometrics['createSignature']>>;
|
|
@@ -160,3 +166,4 @@ export interface INativeBridge {
|
|
|
160
166
|
export type GlobalPermissionStatus = PermissionStatus | PermissionState;
|
|
161
167
|
export type PluginKeys = Exclude<keyof INativeBridge, 'webview' | 'reloadView'>;
|
|
162
168
|
export type MethodKeys<T extends PluginKeys> = keyof INativeBridge[T];
|
|
169
|
+
export {};
|