Skip to content
Prev Previous commit
Next Next commit
Update index.d.ts
  • Loading branch information
rscotten authored Apr 6, 2020
commit bf1c97a8124d09688418a3b54c4601a015520f59
8 changes: 4 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -807,14 +807,14 @@ export function firebaseConnect<ProfileType, TInner = {}>(
* @see https://react-redux-firebase.com/docs/getting_started.html#add-reducer
*/
export function firebaseReducer<
UserType extends Record<string, any> = {},
ProfileType extends Record<string, any> = {},
Schema extends Record<string, any> = {}
>(state: any, action: any): FirebaseReducer.Reducer<UserType, Schema>
>(state: any, action: any): FirebaseReducer.Reducer<ProfileType, Schema>

export function makeFirebaseReducer<
UserType extends Record<string, any> = {},
ProfileType extends Record<string, any> = {},
Schema extends Record<string, any> = {}
>(): (state: any, action: any) => FirebaseReducer.Reducer<UserType, Schema>
>(): (state: any, action: any) => FirebaseReducer.Reducer<ProfileType, Schema>

/**
* React HOC that attaches/detaches Cloud Firestore listeners on mount/unmount
Expand Down