Skip to content

Commit

Permalink
fix(afs): change doc.update() parameter type to Partial<T> (#1247)
Browse files Browse the repository at this point in the history
Need to follow on with doc changes + use Partial<T> in more places that make sense.
closes #1245, closes #1215
  • Loading branch information
markgoho authored and jamesdaniels committed Oct 12, 2017
1 parent 3ff762d commit 297cabb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/firestore/document/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class AngularFirestoreDocument<T> {
* Update some fields of a document without overwriting the entire document.
* @param data
*/
update(data: T): Promise<void> {
update(data: Partial<T>): Promise<void> {
return this.ref.update(data);
}

Expand Down

0 comments on commit 297cabb

Please sign in to comment.