Skip to content

Commit a61d0cd

Browse files
authored
docs(firestore): Add code marks around the transaction's set method (#5086)
They were missing, and since all other methods stand out thanks to markup, I was wondering if I could call `set()` on my transaction
1 parent 593b225 commit a61d0cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firestore/lib/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1549,7 +1549,7 @@ export namespace FirebaseFirestoreTypes {
15491549
* A reference to a transaction. The `Transaction` object passed to a transaction's updateFunction provides the methods to
15501550
* read and write data within the transaction context. See `Firestore.runTransaction()`.
15511551
*
1552-
* A transaction consists of any number of `get()` operations followed by any number of write operations such as set(),
1552+
* A transaction consists of any number of `get()` operations followed by any number of write operations such as `set()`,
15531553
* `update()`, or `delete()`. In the case of a concurrent edit, Cloud Firestore runs the entire transaction again. For example,
15541554
* if a transaction reads documents and another client modifies any of those documents, Cloud Firestore retries the transaction.
15551555
* This feature ensures that the transaction runs on up-to-date and consistent data.

0 commit comments

Comments
 (0)