• Preparing search index...
  • The search index is not available
API Documentation
  • API Documentation
  • config
  • registerEnvValue

Function registerEnvValue

  • registerEnvValue(
        key: keyof WellknownEnvKeys,
        valueOrProvider: ValueOrValueProvider<
            keyof WellknownEnvKeys,
            SupportedValueTypes,
        >,
        options?: RegisterOptions,
    ): void
  • Registers a new environment key with the configuration. Keys and values must also be declared at the type-level by extending the WellknownEnvKeys interface.

    Throws an exception if the key was already registered.

    Parameters

    • key: keyof WellknownEnvKeys

      the env key

    • valueOrProvider: ValueOrValueProvider<keyof WellknownEnvKeys, SupportedValueTypes>

      the value or a function returning the value (for lazy evaluation).

    • Optionaloptions: RegisterOptions

      registration flags

    Returns void

    • Defined in config.ts:543

Settings

Member Visibility
API Documentation
  • Loading...

Generated using TypeDoc