You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current out-of-the-box sanitizers are great, but a bit odd to use because you have to declare a new function to access them. It would be easier if they were exported, so this:
const useLocal = env("APP_ONLINE", x => x.asBoolean(), true)
Hey,
I really like: const useLocal = env.asBoolean("APP_ONLINE", true)
The only problem is that We could not chain operations, but chaining is not that important.
The standard usage will benefit greatly with a syntactic sugar like this.
Would you like to contribute a PR?
The current out-of-the-box sanitizers are great, but a bit odd to use because you have to declare a new function to access them. It would be easier if they were exported, so this:
const useLocal = env("APP_ONLINE", x => x.asBoolean(), true)
becomes this:
const useLocal = env("APP_ONLINE", env.asBoolean, true)
Or, even easier:
const useLocal = env.asBoolean("APP_ONLINE", true)
The text was updated successfully, but these errors were encountered: