Skip to content

Commit 390d49c

Browse files
author
Brian Chen
committed
delete extra d.ts methods
1 parent 1fd7d66 commit 390d49c

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

packages/firebase/index.d.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8333,17 +8333,6 @@ declare namespace firebase.firestore {
83338333
*/
83348334
set<T>(documentRef: DocumentReference<T>, data: T): Transaction;
83358335

8336-
/**
8337-
* Writes to the document referred to by the provided `DocumentReference`.
8338-
* If the document does not exist yet, it will be created. If you pass
8339-
* `SetOptions`, the provided data can be merged into the existing document.
8340-
*
8341-
* @param documentRef A reference to the document to be set.
8342-
* @param data An object of the fields and values for the document.
8343-
* @param options An object to configure the set behavior.
8344-
* @return This `Transaction` instance. Used for chaining method calls.
8345-
*/
8346-
83478336
/**
83488337
* Updates fields in the document referred to by the provided
83498338
* `DocumentReference`. The update will fail if applied to a document that

packages/firestore-types/index.d.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,6 @@ export class Transaction {
155155
options: SetOptions
156156
): Transaction;
157157
set<T>(documentRef: DocumentReference<T>, data: T): Transaction;
158-
set<T>(
159-
documentRef: DocumentReference<T>,
160-
data: T | Partial<T>,
161-
options?: SetOptions
162-
): Transaction;
163158

164159
update(documentRef: DocumentReference<any>, data: UpdateData): Transaction;
165160
update(
@@ -181,11 +176,6 @@ export class WriteBatch {
181176
options: SetOptions
182177
): WriteBatch;
183178
set<T>(documentRef: DocumentReference<T>, data: T): WriteBatch;
184-
set<T>(
185-
documentRef: DocumentReference<T>,
186-
data: T | Partial<T>,
187-
options?: SetOptions
188-
): WriteBatch;
189179

190180
update(documentRef: DocumentReference<any>, data: UpdateData): WriteBatch;
191181
update(
@@ -227,7 +217,6 @@ export class DocumentReference<T = DocumentData> {
227217

228218
set(data: Partial<T>, options: SetOptions): Promise<void>;
229219
set(data: T): Promise<void>;
230-
set(data: T | Partial<T>, options?: SetOptions): Promise<void>;
231220

232221
update(data: UpdateData): Promise<void>;
233222
update(

0 commit comments

Comments
 (0)