forked from invertase/react-native-firebase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtype-test.ts
37 lines (25 loc) · 1.13 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
import firebase from '@react-native-firebase/app';
import * as ml from '@react-native-firebase/ml';
console.log(ml.default().app);
// checks module exists at root
console.log(firebase.ml().app.name);
// checks module exists at app level
console.log(firebase.app().ml().app.name);
// checks statics exist
console.log(firebase.ml.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(ml.firebase.SDK_VERSION);
// checks multi-app support exists
console.log(firebase.ml(firebase.app()).app.name);
// checks default export supports app arg
console.log(firebase.ml(firebase.app('foo')).app.name);
console.log(firebase.ml.MLCloudTextRecognizerModelType.DENSE_MODEL);
console.log(ml.MLCloudTextRecognizerModelType.SPARSE_MODEL);
console.log(firebase.ml.MLDocumentTextRecognizedBreakType.EOL_SURE_SPACE);
console.log(ml.MLDocumentTextRecognizedBreakType.HYPHEN);
console.log(firebase.ml.MLCloudLandmarkRecognizerModelType.LATEST_MODEL);
console.log(ml.MLCloudLandmarkRecognizerModelType.STABLE_MODEL);