Skip to content
New issue

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

Use undefined instead of null as the default value #112

Merged
merged 2 commits into from
Nov 12, 2019

Conversation

Timmmm
Copy link
Contributor

@Timmmm Timmmm commented Nov 6, 2019

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
Copy link
Contributor Author

Timmmm commented Nov 6, 2019

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

Copy link
Member

@mourner mourner left a comment

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
Copy link
Contributor Author

Timmmm commented Nov 7, 2019

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.

@mourner
Copy link
Member

mourner commented Nov 12, 2019

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