We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
there is a bug in the new database typescript definitions.
https://github.com/angular/angularfire2/blob/master/src/database/list/create-reference.ts#L11 i think that line no. 6 should be:
update: createDataOperationMethod<Partial<T>>(query.ref, 'update'),
otherwise the non destructive .update() wants as second arguments a complete T object instead of a Partial.
.update()
The text was updated successfully, but these errors were encountered:
fix: update should take a Partial<T> object, fixes angular#1329
6a7d2ca
as a workaround you can double cast the payload as { payload: 'payload' } as any as T in strict environments.
{ payload: 'payload' } as any as T
Sorry, something went wrong.
20e66f5
No branches or pull requests
Hi,
there is a bug in the new database typescript definitions.
https://github.com/angular/angularfire2/blob/master/src/database/list/create-reference.ts#L11
i think that line no. 6 should be:
otherwise the non destructive
.update()
wants as second arguments a complete T object instead of a Partial.The text was updated successfully, but these errors were encountered: