Skip to content
Prev Previous commit
Next Next commit
fix(typescript): fix reloadAuth argument type and duplicate of endBef…
…ore (#1031) - @ MatthewDailey
  • Loading branch information
MatthewDailey authored Jan 4, 2021
commit 3b80135471946c605fb8c001c4e8230e1761a085
5 changes: 2 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,6 @@ export interface ReduxFirestoreQuerySetting {
* @see https://github.com/prescottprue/redux-firestore#where
*/
where?: WhereOptions | WhereOptions[]
endBefore?: FirestoreTypes.DocumentSnapshot | any | any[]
/**
* @see https://github.com/prescottprue/redux-firestore#orderby
*/
Expand Down Expand Up @@ -713,7 +712,7 @@ interface ExtendedAuthInstance {
* @param credential - The auth credential
* @see https://react-redux-firebase.com/docs/api/firebaseInstance.html#reloadauth
*/
reloadAuth: (credential?: firebase.auth.AuthCredential | any) => Promise<void>
reloadAuth: (credential?: AuthTypes.AuthCredential | any) => Promise<void>

/**
* Links the user account with the given credentials. Internally
Expand Down Expand Up @@ -1117,7 +1116,7 @@ interface ReactReduxFirebaseConfig {
fileMetadataFactory?: (
uploadRes: StorageTypes.UploadTaskSnapshot,
firebase: WithFirebaseProps<ProfileType>['firebase'],
metadata: StorageTypes.UploadTaskSnapshot.metadata,
metadata: StorageTypes.FullMetadata,
downloadURL: string
) => object
}
Expand Down