Skip to content

Commit 3b80135

Browse files
fix(typescript): fix reloadAuth argument type and duplicate of endBefore (prescottprue#1031) - @ MatthewDailey
1 parent 92b0058 commit 3b80135

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

index.d.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,6 @@ export interface ReduxFirestoreQuerySetting {
443443
* @see https://github.com/prescottprue/redux-firestore#where
444444
*/
445445
where?: WhereOptions | WhereOptions[]
446-
endBefore?: FirestoreTypes.DocumentSnapshot | any | any[]
447446
/**
448447
* @see https://github.com/prescottprue/redux-firestore#orderby
449448
*/
@@ -713,7 +712,7 @@ interface ExtendedAuthInstance {
713712
* @param credential - The auth credential
714713
* @see https://react-redux-firebase.com/docs/api/firebaseInstance.html#reloadauth
715714
*/
716-
reloadAuth: (credential?: firebase.auth.AuthCredential | any) => Promise<void>
715+
reloadAuth: (credential?: AuthTypes.AuthCredential | any) => Promise<void>
717716

718717
/**
719718
* Links the user account with the given credentials. Internally
@@ -1117,7 +1116,7 @@ interface ReactReduxFirebaseConfig {
11171116
fileMetadataFactory?: (
11181117
uploadRes: StorageTypes.UploadTaskSnapshot,
11191118
firebase: WithFirebaseProps<ProfileType>['firebase'],
1120-
metadata: StorageTypes.UploadTaskSnapshot.metadata,
1119+
metadata: StorageTypes.FullMetadata,
11211120
downloadURL: string
11221121
) => object
11231122
}

0 commit comments

Comments
 (0)