forked from invertase/react-native-firebase
-
Notifications
You must be signed in to change notification settings - Fork 1
/
type-test.ts
64 lines (43 loc) · 2.35 KB
/
type-test.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import firebase from '@react-native-firebase/app';
import * as vision from '@react-native-firebase/ml-vision';
console.log(vision.default().app);
// checks module exists at root
console.log(firebase.vision().app.name);
// checks module exists at app level
console.log(firebase.app().vision().app.name);
// checks statics exist
console.log(firebase.vision.SDK_VERSION);
// checks statics exist on defaultExport
console.log(firebase.SDK_VERSION);
// checks root exists
console.log(firebase.SDK_VERSION);
// checks firebase named export exists on module
console.log(vision.firebase.SDK_VERSION);
// checks multi-app support exists
console.log(firebase.vision(firebase.app()).app.name);
// checks default export supports app arg
console.log(firebase.vision(firebase.app('foo')).app.name);
console.log(firebase.vision.VisionBarcodeFormat.ALL_FORMATS);
console.log(vision.VisionBarcodeFormat);
console.log(firebase.vision.VisionFaceContourType.ALL_POINTS);
console.log(vision.VisionFaceContourType.ALL_POINTS);
console.log(firebase.vision.VisionFaceLandmarkType.LEFT_CHEEK);
console.log(vision.VisionFaceLandmarkType.LEFT_EAR);
console.log(firebase.vision.VisionBarcodeValueType.CALENDAR_EVENT);
// console.log(vision.VisionBarcodeValueType.);
console.log(firebase.vision.VisionFaceDetectorContourMode.ALL_CONTOURS);
console.log(vision.VisionFaceDetectorContourMode.ALL_CONTOURS);
console.log(firebase.vision.VisionFaceDetectorLandmarkMode.ALL_LANDMARKS);
console.log(vision.VisionFaceDetectorLandmarkMode.ALL_LANDMARKS);
console.log(firebase.vision.VisionBarcodeWifiEncryptionType.WEP);
// console.log(vision.VisionBarcodeWifiEncryptionType.WEP);
console.log(firebase.vision.VisionFaceDetectorPerformanceMode.ACCURATE);
console.log(vision.VisionFaceDetectorPerformanceMode.FAST);
console.log(firebase.vision.VisionCloudTextRecognizerModelType.DENSE_MODEL);
console.log(vision.VisionCloudTextRecognizerModelType.SPARSE_MODEL);
console.log(firebase.vision.VisionFaceDetectorClassificationMode.ALL_CLASSIFICATIONS);
console.log(vision.VisionFaceDetectorClassificationMode.ALL_CLASSIFICATIONS);
console.log(firebase.vision.VisionDocumentTextRecognizedBreakType.EOL_SURE_SPACE);
console.log(vision.VisionDocumentTextRecognizedBreakType.HYPHEN);
console.log(firebase.vision.VisionCloudLandmarkRecognizerModelType.LATEST_MODEL);
console.log(vision.VisionCloudLandmarkRecognizerModelType.STABLE_MODEL);