-
Notifications
You must be signed in to change notification settings - Fork 38
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 better type checking #124
Comments
@moltar thanks for raising this, I'm conflicted on rewriting to TS since it narrows the audience of potential contributors, and I think features such as the additional accessors could be challenging. |
Actually haven't used either. Just saw it, and that reminded me to open this issue :)
That's fair! |
Honestly, it would be nice if you didn't use any libraries. One of the major reasons I choose env-var is because it doesn't have any dependencies that may break down the line. |
@just-chillin agreed. This would be a devDependency so it won't affect users of the module. I'm much more dubious about adding regular dependencies. Edit: In other words, I completely agree @just-chillin 😄 |
Is your feature request related to a problem? Please describe.
Problem: lack of tests for types can introduce defects.
This is a spillover from the discussion in #117 and defects from #119.
Describe the solution you'd like
Add testing for types.
Found this interesting library today: expect-type
Describe alternatives you've considered
Using:
Another drastic alternative is to rewrite the project to TypeScript, which will then remove the need to maintain separate types.
Additional context
Can help with a PR.
The text was updated successfully, but these errors were encountered: