Skip to content

Commit 2be43ea

Browse files
Fix compile error + add Changelog for #3819 (#3864)
1 parent 7d655a8 commit 2be43ea

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.changeset/neat-crews-rule.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@firebase/firestore": patch
3+
---
4+
5+
Internal changes to support upcoming modular API.

packages/firestore/lite/src/api/transaction.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,14 @@ export class Transaction {
123123
*
124124
* @param documentRef A reference to the document to be set.
125125
* @param data An object of the fields and values for the document.
126+
* @param options An object to configure the set behavior.
126127
* @return This `Transaction` instance. Used for chaining method calls.
127128
*/
128-
set<T>(documentRef: DocumentReference<T>, data: Partial<T>): this;
129+
set<T>(
130+
documentRef: DocumentReference<T>,
131+
data: Partial<T>,
132+
options: SetOptions
133+
): this;
129134
set<T>(
130135
documentRef: DocumentReference<T>,
131136
value: T,

0 commit comments

Comments
 (0)