Skip to content

Commit

Permalink
fix(db): update should take a Partial<T> object (#1330)
Browse files Browse the repository at this point in the history
Closes #1329
  • Loading branch information
phra authored and jamesdaniels committed Nov 17, 2017
1 parent 81018ed commit 20e66f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/list/create-reference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { createRemoveMethod } from './remove';
export function createListReference<T>(query: DatabaseQuery): AngularFireList<T> {
return {
query,
update: createDataOperationMethod<T>(query.ref, 'update'),
update: createDataOperationMethod<Partial<T>>(query.ref, 'update'),
set: createDataOperationMethod<T>(query.ref, 'set'),
push: (data: T) => query.ref.push(data),
remove: createRemoveMethod(query.ref),
Expand Down

0 comments on commit 20e66f5

Please sign in to comment.