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

Add generic type #82

Merged
merged 1 commit into from
Dec 17, 2021
Merged

Add generic type #82

merged 1 commit into from
Dec 17, 2021

Conversation

mskelton
Copy link
Contributor

Fixes #81

Adds a generic for the initials function so the correct result will be returned based on the input type. TypeScript will infer it automatically, so this requires no change by the user.

Copy link
Owner

@gr2m gr2m left a comment

Choose a reason for hiding this comment

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

Thanks

@gr2m gr2m merged commit 4fc7a88 into gr2m:main Dec 17, 2021
@mskelton mskelton deleted the patch-1 branch December 17, 2021 17:49
@github-actions
Copy link

🎉 This PR is included in version 3.1.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

More intelligent TypeScript return type
2 participants