ConsumedVar

source

Represents an environment variable that has been read and parsed.

Constructors

new ConsumedVar<T>(name: string, internalValue: undefined | T, isRequired: boolean): ConsumedVarsource

Properties

readonlyinternalValue: undefined | Tsource

readonlyisRequired: booleansource

readonlyname: stringsource

Methods

Instance methods

requiredIf(other: ConsumedVar): ConsumedVarsource

Declares that if the dependent variable is true and this variable is not set or defaulted, an error should be produced.

value(): Tsource