Skip to content

Commit 2a99add

Browse files
Transaction/WriteBatch signature fix (#3151)
1 parent 5f81ca4 commit 2a99add

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

packages/firestore/exp/index.d.ts

+10-2
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,11 @@ export class Transaction {
172172
set<T>(
173173
documentRef: DocumentReference<T>,
174174
data: T,
175-
options?: SetOptions
175+
): Transaction;
176+
set<T>(
177+
documentRef: DocumentReference<T>,
178+
data: Partial<T>,
179+
options: SetOptions
176180
): Transaction;
177181

178182
update(documentRef: DocumentReference<any>, data: UpdateData): Transaction;
@@ -192,7 +196,11 @@ export class WriteBatch {
192196
set<T>(
193197
documentRef: DocumentReference<T>,
194198
data: T,
195-
options?: SetOptions
199+
): WriteBatch;
200+
set<T>(
201+
documentRef: DocumentReference<T>,
202+
data: Partial<T>,
203+
options: SetOptions
196204
): WriteBatch;
197205

198206
update(documentRef: DocumentReference<any>, data: UpdateData): WriteBatch;

0 commit comments

Comments
 (0)