@avanio/variable-util
    Preparing search index...

    Type Alias RequiredEnvEntry<Value>

    Required environment entry

    v1.1.0

    type RequiredEnvEntry<Value> = {
        defaultValue: Loadable<Value>;
        params?: FormatParameters;
        parser: IConfigParser<unknown, Value>;
        undefinedErrorMessage?: string;
        undefinedThrowsError?: boolean;
    }

    Type Parameters

    • Value

      type of value

    Index

    Properties

    defaultValue: Loadable<Value>

    The default value to use if the variable is not defined

    The format parameters to use to format the value

    parser: IConfigParser<unknown, Value>

    The parser to use to parse the value

    undefinedErrorMessage?: string

    Replaces the default throw error message with this message

    undefinedThrowsError?: boolean

    Whether to throw an error if the variable is undefined