Skip to content

Commit 297cabb

Browse files
markgohojamesdaniels
authored andcommitted
fix(afs): change doc.update() parameter type to Partial<T> (#1247)
Need to follow on with doc changes + use Partial<T> in more places that make sense. closes #1245, closes #1215
1 parent 3ff762d commit 297cabb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/firestore/document/document.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class AngularFirestoreDocument<T> {
5656
* Update some fields of a document without overwriting the entire document.
5757
* @param data
5858
*/
59-
update(data: T): Promise<void> {
59+
update(data: Partial<T>): Promise<void> {
6060
return this.ref.update(data);
6161
}
6262

0 commit comments

Comments
 (0)