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 support for helper methods #2

Open
1 task done
SpencerKaiser opened this issue Dec 1, 2020 · 0 comments
Open
1 task done

Add support for helper methods #2

SpencerKaiser opened this issue Dec 1, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Milestone

Comments

@SpencerKaiser
Copy link
Contributor

Pre-requisites:

Feature Description

We should add support for helper methods. Here's @johnkahn's suggestion:

import setEnv, { key } from '../..';
const env = setEnv({
  nodeEnv: key('NODE_ENV').required().asString(),
  optional: key('PORT').default(3000).asPortNumber(),
});
@SpencerKaiser SpencerKaiser added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Dec 1, 2020
@SpencerKaiser SpencerKaiser added this to the v2.0 milestone Dec 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant