-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
66 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { ReactNativeFirebase } from '@react-native-firebase/app'; | ||
import { FirebaseMLTypes } from '..'; | ||
|
||
type FirebaseApp = ReactNativeFirebase.Module; | ||
type FirebaseML = FirebaseMLTypes.Module; | ||
|
||
/** | ||
* Returns the existing default {@link FirebaseML} instance that is associated with the | ||
* default {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new | ||
* instance with default settings. | ||
* | ||
* @returns The {@link FirebaseML} instance of the provided app. | ||
*/ | ||
export declare function getML(app?: FirebaseApp): FirebaseML; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { firebase } from '..'; | ||
|
||
/** | ||
* @typedef {import('@react-native-firebase/app').ReactNativeFirebase.Module} FirebaseApp | ||
* @typedef {import('..').FirebaseMLTypes.Module} FirebaseML | ||
*/ | ||
|
||
/** | ||
* @param {FirebaseApp | undefined} app | ||
* @returns {FirebaseML} | ||
*/ | ||
export function getML(app) { | ||
if (app) { | ||
return firebase.ml(app); | ||
} | ||
return firebase.ml(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters