Aaron Franks

Results 35 comments of Aaron Franks

This is a good point, I don't think the type of `default`/`devDefault` was ever formally specified. Looking at the implementation, `rawValue` is assigned to the `default`/`devDefault` values so it should...

That's correct, `testOnly('foo')` will only use `'foo'` as a default value when NODE_ENV is `test`. Since you probably can control your test environment, why not just add `ENV_MONGO_URI=...` as part...

Hi @harrim91 thanks for the PR! I can't figure out why the type T is not being inferred correctly by makeValidator()– when I tested #146 I'm quite sure it was...

Hey @harrim91 I was not able to repro the error you're seeing on latest `main`. Could you install 7.3.0-beta.1 (just published!) and let me know if that works better for...

This is nice, thanks! I really like the centered layout, it never occurred me to apply any design sense to the readme :D Could you just reduce the vertical height...

Merged, thanks for revisiting this πŸ‘

No updates, sorry– I think the approach in this comment is still doable: https://github.com/af/envalid/issues/78#issuecomment-387282133 I haven't had the time to add this but I'd welcome a PR πŸ‘

I think https://github.com/af/envalid/pull/194 solves the same problem here, if you're still seeing the problem please open a new issue πŸ™

Forgot about this issue! All of these suggestions have now been addressed, thanks again for the early feedback :)

Have you tried the latest envalid, `8.0.0-alpha.2`? Seems to be typed as desired for me when I run your example with it: