Skip to content

Commit

Permalink
[TS migration][crashlytics] Update __mocks__/@react-native-firebase/c…
Browse files Browse the repository at this point in the history
…rashlytics.ts

Co-authored-by: Abdelhafidh Belalia <[email protected]>
  • Loading branch information
ruben-rebelo and s77rt authored Feb 7, 2024
1 parent b2e90af commit b141118
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions __mocks__/@react-native-firebase/crashlytics.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import type {FirebaseCrashlyticsTypes} from '@react-native-firebase/crashlytics';

type CrashlyticsModule = {
log: FirebaseCrashlyticsTypes.Module['log'];
recordError: FirebaseCrashlyticsTypes.Module['recordError'];
setCrashlyticsCollectionEnabled: FirebaseCrashlyticsTypes.Module['setCrashlyticsCollectionEnabled'];
};
type CrashlyticsModule = Pick<FirebaseCrashlyticsTypes.Module, 'log' | 'recordError' | 'setCrashlyticsCollectionEnabled'>;

type CrashlyticsMock = () => CrashlyticsModule;

Expand Down

0 comments on commit b141118

Please sign in to comment.