@icanbwell/types 0.43.0 → 0.44.2
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": "0.
|
|
3
|
+
"version": "0.44.2",
|
|
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": "1.
|
|
40
|
-
"description": "@icanbwell/types. repo version: 1.
|
|
39
|
+
"repoVersion": "1.36.1",
|
|
40
|
+
"description": "@icanbwell/types. repo version: 1.36.1",
|
|
41
41
|
"module": "./index.js",
|
|
42
42
|
"main": "./index.js",
|
|
43
43
|
"type": "module",
|
package/src/native-bridge.d.ts
CHANGED
|
@@ -42,6 +42,13 @@ export interface ICamera {
|
|
|
42
42
|
requestRollPermission(): Promise<PermissionStatus>;
|
|
43
43
|
checkRollPermission(): Promise<PermissionStatus>;
|
|
44
44
|
}
|
|
45
|
+
export type AllowedDocumentType = 'image/png' | 'image/jpg' | 'image/jpeg' | 'image/svg+xml' | 'application/pdf';
|
|
46
|
+
export interface IDocumentDownload {
|
|
47
|
+
isAvailable(): Promise<boolean>;
|
|
48
|
+
writeFile(filename: string, filetype: string, contents: string): Promise<string | void>;
|
|
49
|
+
requestPermission(): Promise<GlobalPermissionStatus>;
|
|
50
|
+
checkPermission(): Promise<GlobalPermissionStatus>;
|
|
51
|
+
}
|
|
45
52
|
export interface GeoOptions {
|
|
46
53
|
timeout?: number;
|
|
47
54
|
maximumAge?: number;
|
|
@@ -106,6 +113,7 @@ export interface INativeBridge {
|
|
|
106
113
|
camera: ICamera;
|
|
107
114
|
geolocation: IGeolocation;
|
|
108
115
|
print: IPrint;
|
|
116
|
+
documentDownload: IDocumentDownload;
|
|
109
117
|
documentPicker: IDocumentPicker;
|
|
110
118
|
system: ISystem;
|
|
111
119
|
reloadView(): void;
|
package/src/native-plugins.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type NativeDependency = 'react-native-
|
|
1
|
+
export type NativeDependency = '@react-native-async-storage/async-storage' | '@react-native-community/geolocation' | 'react-native-biometrics' | 'react-native-permissions' | 'react-native-print' | 'react-native-webview';
|
|
2
2
|
export type NativeDependencies = Array<NativeDependency>;
|