Skip to content

Commit f05091f

Browse files
authored
fix(types): make updateAuth params not required and use correct type for runTransaction - @rscotten
2 parents 26e088c + dd7a1fe commit f05091f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ interface ExtendedFirestoreInstance extends FirestoreTypes.FirebaseFirestore {
486486
* transaction.
487487
* @see https://github.com/prescottprue/redux-firestore#runtransaction
488488
*/
489-
runTransaction: typeof firebase.firestore.Firestore.runTransaction
489+
runTransaction: typeof FirestoreTypes.FirebaseFirestore.prototype.runTransaction
490490

491491
/**
492492
* Sets a listener within redux-firestore
@@ -678,8 +678,8 @@ interface ExtendedAuthInstance {
678678
*/
679679
updateAuth: (
680680
authUpdate: {
681-
displayName: string | null
682-
photoURL: string | null
681+
displayName?: string | null
682+
photoURL?: string | null
683683
},
684684
updateInProfile?: boolean
685685
) => Promise<void>

0 commit comments

Comments
 (0)