Open SpencerKaiser opened 3 years ago
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(), });
Pre-requisites:
Feature Description
We should add support for helper methods. Here's @johnkahn's suggestion: