@icanbwell/types 1.10.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
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",
|
|
@@ -48,7 +48,8 @@
|
|
|
48
48
|
"react-native-print": "0.x",
|
|
49
49
|
"@react-native-async-storage/async-storage": "1.x",
|
|
50
50
|
"@react-native-camera-roll/camera-roll": "5.x",
|
|
51
|
-
"@react-native-community/geolocation": "3.x"
|
|
51
|
+
"@react-native-community/geolocation": "3.x",
|
|
52
|
+
"react-native-device-info": "^10.x"
|
|
52
53
|
},
|
|
53
54
|
"module": "./index.js",
|
|
54
55
|
"main": "./index.js",
|
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 {
|
|
@@ -129,6 +129,7 @@ export interface IPushNotifications {
|
|
|
129
129
|
}
|
|
130
130
|
export interface IUtils {
|
|
131
131
|
getPlatform(): Promise<typeof Platform.OS>;
|
|
132
|
+
getBundleId(): Promise<string>;
|
|
132
133
|
}
|
|
133
134
|
export interface ISystem {
|
|
134
135
|
openSettings: typeof openSettings;
|
|
@@ -159,4 +160,3 @@ export interface INativeBridge {
|
|
|
159
160
|
export type GlobalPermissionStatus = PermissionStatus | PermissionState;
|
|
160
161
|
export type PluginKeys = Exclude<keyof INativeBridge, 'webview' | 'reloadView'>;
|
|
161
162
|
export type MethodKeys<T extends PluginKeys> = keyof INativeBridge[T];
|
|
162
|
-
export {};
|
package/src/native-plugins.d.ts
CHANGED
|
@@ -7,7 +7,8 @@ import type print from 'react-native-print';
|
|
|
7
7
|
import type storage from '@react-native-async-storage/async-storage';
|
|
8
8
|
import type * as cameraRoll from '@react-native-camera-roll/camera-roll';
|
|
9
9
|
import type geolocation from '@react-native-community/geolocation';
|
|
10
|
-
|
|
10
|
+
import type deviceInfo from 'react-native-device-info';
|
|
11
|
+
export type NativePackage = '@react-native-async-storage/async-storage' | '@react-native-community/geolocation' | '@react-native-camera-roll/camera-roll' | 'react-native-biometrics' | 'react-native-permissions' | 'react-native-print' | 'react-native-webview' | 'react-native-fs' | 'react-native-document-picker' | 'react-native-notifications' | 'react-native-device-info';
|
|
11
12
|
export type NativePackages = Array<NativePackage>;
|
|
12
13
|
export type NativeModuleMap = {
|
|
13
14
|
biometrics?: typeof biometrics;
|
|
@@ -19,5 +20,6 @@ export type NativeModuleMap = {
|
|
|
19
20
|
print?: typeof print;
|
|
20
21
|
storage?: typeof storage;
|
|
21
22
|
pushNotifications?: typeof pushNotifications;
|
|
23
|
+
deviceInfo?: typeof deviceInfo;
|
|
22
24
|
};
|
|
23
25
|
export type NativeModules = (keyof NativeModuleMap)[];
|