Skip to content

Commit 237081f

Browse files
chore: remove static as export, and import module config
1 parent 826be3f commit 237081f

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

packages/app/lib/internal/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ export * from './registry/namespace';
2525
export * from './registry/nativeModule';
2626
export { default as SharedEventEmitter } from './SharedEventEmitter';
2727
export { Logger } from './logger';
28+
export type { ModuleConfig } from '../types/internal';

packages/crashlytics/lib/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@
1616
*/
1717

1818
// Export types from types/crashlytics
19-
export type {
20-
Crashlytics,
21-
CrashlyticsStatics,
22-
FirebaseCrashlyticsTypes,
23-
} from './types/crashlytics';
19+
export type { Crashlytics, FirebaseCrashlyticsTypes } from './types/crashlytics';
2420

2521
// Export modular API functions
2622
export * from './modular';

packages/crashlytics/lib/namespaced.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import {
2525
isOther,
2626
MODULAR_DEPRECATION_ARG,
2727
} from '@react-native-firebase/app/lib/common';
28+
import type { ModuleConfig } from '@react-native-firebase/app/lib/internal';
2829
import {
2930
createModuleNamespace,
3031
FirebaseModule,
@@ -51,7 +52,7 @@ class FirebaseCrashlyticsModule extends FirebaseModule {
5152

5253
constructor(
5354
app: ReactNativeFirebase.FirebaseAppBase,
54-
config: any,
55+
config: ModuleConfig,
5556
customUrlOrRegion?: string | null,
5657
) {
5758
super(app, config, customUrlOrRegion);

0 commit comments

Comments
 (0)