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: return types should include undefined #13

Merged
merged 2 commits into from
Jan 17, 2023

Conversation

nikensss
Copy link
Contributor

@nikensss nikensss commented Jan 16, 2023

When calling from or to, the methods can return undefined but the types were not indicating that.

All tests pass.

This is the first time I am contributing to an open source package. I probably forgot a few things. Just let me know and I will happily comply. :)

Fixes #14

When calling `from` or `to`, the methods can return `undefined` but the
types were not indicating that.
@sindresorhus sindresorhus merged commit 0138180 into sindresorhus:main Jan 17, 2023
@sindresorhus
Copy link
Owner

Thanks :)

Repository owner deleted a comment from sh471 Jan 17, 2023
Repository owner deleted a comment from sh471 Jan 17, 2023
Repository owner deleted a comment from sh471 Jan 17, 2023
Repository owner deleted a comment from sh471 Jan 17, 2023
Repository owner deleted a comment from sh471 Jan 17, 2023
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.

Return type of from and to do not include undefined.
2 participants