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

Type for single param invocation #28

Closed
cadam11 opened this issue Dec 17, 2021 · 1 comment
Closed

Type for single param invocation #28

cadam11 opened this issue Dec 17, 2021 · 1 comment

Comments

@cadam11
Copy link
Contributor

cadam11 commented Dec 17, 2021

Since plur defaults to returning the plural version, it's handy when you don't have a specific count but just want to get the plural form. Right now, plur('word') returns (correctly) words, but TypeScript complains about this usage. Would be nice if the type defs added a single-param overload.

I'm happy to open a PR if this sounds reasonable to the maintainers.

@cadam11
Copy link
Contributor Author

cadam11 commented Dec 17, 2021

It just took a minute so I opened a #29 to address this tiny issue.

@cadam11 cadam11 closed this as completed Jun 29, 2022
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

No branches or pull requests

1 participant