Merge branch '@phaen/fiestore-type-parameters' of https://github.com/invertase/react-native-firebase into @phaen/fiestore-type-parameters

This commit is contained in:
Pablo Kebees
2020-01-13 13:10:51 +01:00

View File

@@ -510,9 +510,9 @@ export namespace FirebaseFirestoreTypes {
* #### Example
*
* ```js
* const user = await firebase.firestore().doc('users/alovelace').get<string>();
* const user = await firebase.firestore().doc('users/alovelace').get();
*
* console.log('Address ZIP Code', user.get('address.zip'));
* console.log('Address ZIP Code', user.get<string>('address.zip'));
* ```
*
* @param fieldPath The path (e.g. 'foo' or 'foo.bar') to a specific field.