Skip to content

Conversation

@merlinnot
Copy link
Contributor

Both before and after fields are now described as non-optional.

Resolves #402

Description

Fixes invalid typings of before and after fields of the Change class according to the specification. See #402 for context.

Code sample

This change does not expose any new APIs, only fixes an interface of the existing one. It's a non-breaking change since it tightens the interface, so any existing projects should compile just fine.

Both `before` and `after` fields are now described as non-optional.
@thechenky thechenky self-assigned this Feb 4, 2019
@thechenky thechenky self-requested a review February 4, 2019 08:08
Copy link
Contributor

@thechenky thechenky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appreciate the PR! :)

@thechenky thechenky merged commit df27316 into firebase:master Feb 4, 2019
@merlinnot merlinnot deleted the fix-issue-402 branch March 18, 2019 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid typings of the first parameter of firestore.onChange - optional before, after

2 participants