Skip to content

Commit 5a3aa74

Browse files
committed
wording tweaks
1 parent 055c384 commit 5a3aa74

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

packages/firestore/src/api/snapshot.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@ import { SnapshotListenOptions } from './reference_impl';
5353
* for example, have properties with complex, nested data types, properties used
5454
* for memoization, properties of types not supported by Firestore (such as
5555
* `symbol` and `bigint`), and helper functions that perform compound
56-
* operations. Such classes are not suitable or possible to store into a
56+
* operations. Such classes are not suitable and/or possible to store into a
5757
* Firestore database. Instead, instances of such classes need to be converted
58-
* to "plain old JavaScript objects" (POJOs), objects with only primitive
59-
* properties, potentially nested inside other objects or arrays. In this
58+
* to "plain old JavaScript objects" (POJOs) with exclusively primitive
59+
* properties, potentially nested inside other POJOs or arrays of POJOs. In this
6060
* context, this type is referred to as the "DbModel" and would be an object
6161
* suitable for persisting into Firestore. For convenience, applications can
6262
* implement `FirestoreDataConverter` and register the converter with Firestore
63-
* objects, such a `DocumentReference` or `Query`, to automatically convert
63+
* objects, such as `DocumentReference` or `Query`, to automatically convert
6464
* `AppModel` to `DbModel` when storing into Firestore, and convert `DbModel`
65-
* back to `AppModel` when retrieving from Firestore.
65+
* to `AppModel` when retrieving from Firestore.
6666
*
6767
* @example
6868
*

packages/firestore/src/lite-api/snapshot.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,16 @@ import { AbstractUserDataWriter } from './user_data_writer';
5151
* for example, have properties with complex, nested data types, properties used
5252
* for memoization, properties of types not supported by Firestore (such as
5353
* `symbol` and `bigint`), and helper functions that perform compound
54-
* operations. Such classes are not suitable or possible to store into a
54+
* operations. Such classes are not suitable and/or possible to store into a
5555
* Firestore database. Instead, instances of such classes need to be converted
56-
* to "plain old JavaScript objects" (POJOs), objects with only primitive
57-
* properties, potentially nested inside other objects or arrays. In this
56+
* to "plain old JavaScript objects" (POJOs) with exclusively primitive
57+
* properties, potentially nested inside other POJOs or arrays of POJOs. In this
5858
* context, this type is referred to as the "DbModel" and would be an object
5959
* suitable for persisting into Firestore. For convenience, applications can
6060
* implement `FirestoreDataConverter` and register the converter with Firestore
61-
* objects, such a `DocumentReference` or `Query`, to automatically convert
61+
* objects, such as `DocumentReference` or `Query`, to automatically convert
6262
* `AppModel` to `DbModel` when storing into Firestore, and convert `DbModel`
63-
* back to `AppModel` when retrieving from Firestore.
63+
* to `AppModel` when retrieving from Firestore.
6464
*
6565
* @example
6666
*

0 commit comments

Comments
 (0)