Type Parameters

  • TEnv extends { [key: string]: unknown } = Env

Methods

Methods

  • Retrieves a configuration value by key, throwing an error if the value is undefined.

    Type Parameters

    • TKey extends string

    Parameters

    • key: TKey

      The key of the configuration value to retrieve.

    Returns Exclude<TEnv[TKey], undefined>

    The configuration value.

    Error if the configuration value is undefined.