fix(firestore): fix firestore settings type definition#4965
Merged
mikehardy merged 1 commit intoFeb 28, 2021
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/invertase/react-native-firebase/4Gu19xzt9QjM4yijhb1M25pZxjjc |
Codecov Report
@@ Coverage Diff @@
## master #4965 +/- ##
===========================================
- Coverage 89.21% 36.84% -52.36%
===========================================
Files 105 48 -57
Lines 3482 1455 -2027
Branches 0 348 +348
===========================================
- Hits 3106 536 -2570
- Misses 376 697 +321
- Partials 0 222 +222 |
mikehardy
approved these changes
Feb 28, 2021
mikehardy
left a comment
Collaborator
There was a problem hiding this comment.
Indeed! Thanks for the link to the firebase-js-sdk for quick verification
You are correct and this looks good to me
androidIsForVivek
pushed a commit
to androidIsForVivek/react-native-firebase
that referenced
this pull request
Aug 9, 2021
…se#4965) This matches the optional typing of all Settings members in firebase-js-sdk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fix
firestore.Settingstype definition to make each field could be optional. As per implementation offirebase.firestore().settings(), it was intended to be optional.And also follows
firebase-js-sdk's type definitions: https://github.com/firebase/firebase-js-sdk/blob/master/packages/firestore-types/index.d.tsRelated issues
Release Summary
Checklist
AndroidiOSe2etests added or updated inpackages/\*\*/e2ejesttests added or updated inpackages/\*\*/__tests__Test Plan
Think
react-native-firebaseis great? Please consider supporting the project with any of the below:React Native FirebaseandInvertaseon Twitter🔥