@icanbwell/types 1.11.0 → 1.12.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/package.json +3 -3
- package/src/native-bridge.d.ts +6 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icanbwell/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
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": "
|
|
40
|
-
"description": "@icanbwell/types. repo version:
|
|
39
|
+
"repoVersion": "4.1.0",
|
|
40
|
+
"description": "@icanbwell/types. repo version: 4.1.0",
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"react-native": "0.x",
|
|
43
43
|
"react-native-biometrics": "3.x",
|
package/src/native-bridge.d.ts
CHANGED
|
@@ -16,8 +16,6 @@ export type NativeEvents<T = any> = {
|
|
|
16
16
|
export type NativeBridgeEmittableEvents = Pick<NativeEvents, 'onauthsuccess' | 'error' | 'nativebridgedependencies'>;
|
|
17
17
|
export type NativeEventEmitter = TypedEmitter<NativeEvents>;
|
|
18
18
|
export type NativeEmittableEventEmitter = TypedEmitter<NativeBridgeEmittableEvents>;
|
|
19
|
-
type InvokedReturnType<T> = Promise<Awaited<T>>;
|
|
20
|
-
type InvokedWrappedMethod<T extends (...args: any[]) => any> = (...args: Parameters<T>) => InvokedReturnType<ReturnType<T>>;
|
|
21
19
|
export interface IWebview {
|
|
22
20
|
open(url: string): void;
|
|
23
21
|
close<T>(data: T): void;
|
|
@@ -26,10 +24,12 @@ export interface IWebview {
|
|
|
26
24
|
}
|
|
27
25
|
export interface IBiometrics {
|
|
28
26
|
isAvailable(): Promise<boolean>;
|
|
29
|
-
biometricKeysExist:
|
|
30
|
-
createKeys:
|
|
31
|
-
createSignature:
|
|
32
|
-
deleteKeys:
|
|
27
|
+
biometricKeysExist(): ReturnType<Awaited<rnBiometrics['biometricKeysExist']>>;
|
|
28
|
+
createKeys(): ReturnType<Awaited<rnBiometrics['createKeys']>>;
|
|
29
|
+
createSignature(createSignatureOptions: Parameters<rnBiometrics['createSignature']>[0]): ReturnType<Awaited<rnBiometrics['createSignature']>>;
|
|
30
|
+
deleteKeys(): ReturnType<Awaited<rnBiometrics['deleteKeys']>>;
|
|
31
|
+
requestPermission(): Promise<PermissionStatus>;
|
|
32
|
+
checkPermission(): Promise<PermissionStatus>;
|
|
33
33
|
}
|
|
34
34
|
export type IEvents = Pick<NativeEventEmitter, 'emit'>;
|
|
35
35
|
export interface IStorage {
|
|
@@ -160,4 +160,3 @@ export interface INativeBridge {
|
|
|
160
160
|
export type GlobalPermissionStatus = PermissionStatus | PermissionState;
|
|
161
161
|
export type PluginKeys = Exclude<keyof INativeBridge, 'webview' | 'reloadView'>;
|
|
162
162
|
export type MethodKeys<T extends PluginKeys> = keyof INativeBridge[T];
|
|
163
|
-
export {};
|