@douglasneuroinformatics/libnest
    Preparing search index...

    Class ConfigService<TEnv>

    Type Parameters

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

    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.