Skip to content

Commit

Permalink
fix(installations, types): fixup installations module types
Browse files Browse the repository at this point in the history
also fix the new module generation script to generate them correctly
in the future
  • Loading branch information
mikehardy committed Aug 18, 2021
1 parent 84fbb59 commit 781a303
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/installations/lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ export namespace FirebaseInstallationsTypes {
}

declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp<
Installations.Module,
Installations.Statics
FirebaseInstallationsTypes.Module,
FirebaseInstallationsTypes.Statics
>;

export const firebase: ReactNativeFirebase.Module & {
Expand Down
5 changes: 3 additions & 2 deletions scripts/_TEMPLATE_/lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import { ReactNativeFirebase } from '@react-native-firebase/app';
export namespace Firebase_Template_Types {
import FirebaseModule = ReactNativeFirebase.FirebaseModule;

// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface Statics {
// firebase._template_.* static props go here
}
Expand Down Expand Up @@ -103,8 +104,8 @@ export namespace Firebase_Template_Types {
}

declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp<
_Template_.Module,
_Template_.Statics
Firebase_Template_Types.Module,
Firebase_Template_Types.Statics
>;

export const firebase: ReactNativeFirebase.Module & {
Expand Down

0 comments on commit 781a303

Please sign in to comment.