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

fix: 🐛 accept null as value in fromJSON functions #373

Merged
merged 3 commits into from
Jun 1, 2019
Merged

fix: 🐛 accept null as value in fromJSON functions #373

merged 3 commits into from
Jun 1, 2019

Conversation

G-Rath
Copy link
Collaborator

@G-Rath G-Rath commented May 1, 2019

I created the DirectoryJSON alias just to make things easier.

I looked at enabled strictNullChecks, but this package just wasn't designed for it 😂
Ideally, it'd be good to have it on at some point, or otherwise ensure all methods that can return null or undefined as thusly typed.

I've not linked the issue with this PR, as the issue could be used to track the above, and this is the change that I need ASAP to continue work on my current project.

Once I have some time, I'll be happy to look into making this library more strictNullChecks compatible.

Copy link
Owner

@streamich streamich left a comment

Choose a reason for hiding this comment

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

Thanks!

@streamich
Copy link
Owner

Sorry for the delay, I somehow missed notification about this PR.

@streamich streamich merged commit 674a1e7 into streamich:master Jun 1, 2019
@streamich
Copy link
Owner

🎉 This PR is included in version 2.15.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@G-Rath G-Rath deleted the fix-372 branch June 1, 2019 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants