Skip to content

Use undefined instead of null as the default value#112

Merged
mourner merged 2 commits into
mapbox:masterfrom
Timmmm:patch-1
Nov 12, 2019
Merged

Use undefined instead of null as the default value#112
mourner merged 2 commits into
mapbox:masterfrom
Timmmm:patch-1

Conversation

@Timmmm

@Timmmm Timmmm commented Nov 6, 2019

Copy link
Copy Markdown
Contributor

This fixes the typescript type errors in #107 and just makes more sense if you ask me.

This fixes the type issues in mapbox#107. Also it makes more sense. I'm unsure about the `return undefined`.
@Timmmm

Timmmm commented Nov 6, 2019

Copy link
Copy Markdown
Contributor Author

PS: I'm not sure about the return undefined.

@mourner mourner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you investigate the failing tests as a result of this change?

@Timmmm

Timmmm commented Nov 7, 2019

Copy link
Copy Markdown
Contributor Author

Tests fixed. I guess maybe this should go in a major release because it technically breaks the API, but on the other hand it doesn't look like this behaviour was actually documented anywhere.

@Timmmm Timmmm requested a review from mourner November 12, 2019 08:41
@mourner mourner merged commit edcc792 into mapbox:master Nov 12, 2019
@mourner

mourner commented Nov 12, 2019

Copy link
Copy Markdown
Member

Thank you!

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.

2 participants