-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27661 from kubabutkiewicz/ts-migration/Firebase-lib
[No QA] [TS migration] Migrate 'Firebase' lib to TypeScript
- Loading branch information
Showing
4 changed files
with
30 additions
and
21 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
import {StartTrace, StopTrace} from './types'; | ||
|
||
/** Web does not use Firebase for performance tracing */ | ||
const startTrace: StartTrace = () => {}; | ||
const stopTrace: StopTrace = () => {}; | ||
|
||
export default { | ||
startTrace, | ||
stopTrace, | ||
}; |
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,11 @@ | ||
import {FirebasePerformanceTypes} from '@react-native-firebase/perf'; | ||
|
||
type Trace = { | ||
trace: FirebasePerformanceTypes.Trace; | ||
start: number; | ||
}; | ||
type TraceMap = Record<string, Trace>; | ||
type StartTrace = (customEventName: string) => void; | ||
type StopTrace = (customEventName: string) => void; | ||
|
||
export type {StartTrace, StopTrace, TraceMap}; |