EnvVar

source

A partial representation of an environment variable that has a type but has not yet been bound to a name.

Constructors

new EnvVar<T>(parser: Parser<T>): EnvVarsource

Properties

isRequired: booleansource

readonlyparser: Parser<T>source

Methods

Static methods

staticbool(): EnvVarsource

staticinteger(minMax: MinMax): EnvVarsource

staticoneOf<T extends string>(values: T[]): EnvVarsource

staticportNumber(): EnvVarsource

staticstring(): EnvVarsource

Instance methods

consume(name: string): Maybe<T>source

consumes(name: string): ConsumedVarsource

consumes(name: string, defaultValue: T): ConsumedVarsource

required(): EnvVarsource