From 20e66f59a2b2261c448d5c5baee5c359c34793a5 Mon Sep 17 00:00:00 2001 From: Francesco Soncina Date: Fri, 17 Nov 2017 07:00:40 +0100 Subject: [PATCH] fix(db): update should take a Partial object (#1330) Closes #1329 --- src/database/list/create-reference.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database/list/create-reference.ts b/src/database/list/create-reference.ts index 8fcc24ac7..d84acbc19 100644 --- a/src/database/list/create-reference.ts +++ b/src/database/list/create-reference.ts @@ -8,7 +8,7 @@ import { createRemoveMethod } from './remove'; export function createListReference(query: DatabaseQuery): AngularFireList { return { query, - update: createDataOperationMethod(query.ref, 'update'), + update: createDataOperationMethod>(query.ref, 'update'), set: createDataOperationMethod(query.ref, 'set'), push: (data: T) => query.ref.push(data), remove: createRemoveMethod(query.ref),