Source from which to get environment properties.

Hierarchy

  • EnvironmentSource

Constructors

Properties

errorHandler?: (<E>(error) => EnvironmentState)

Type declaration

id?: string

Used by the loader to manage sources, so it must never be duplicated. If not defined, the loader will assign a random id.

ignoreError?: boolean

Ignores the error if the required source throws.

isOrdered?: boolean

Loads the source in the declaration order.

  • Waits for another source to complete to start the load.
  • Unordered sources add all properties at once.
  • Never loads if previous ordered source doesn't complete.
  • Ignore errors and continues with the next ordered source.
isRequired?: boolean

Resolves the required sources before the environment load.

  • Resolves immedialely if there is no required sources.
  • Never resolves if a required source doesn't complete.
  • Rejects after a required source error.
  • Resolves after a no required source error.
mapFn?: ((properties) => EnvironmentState)

Type declaration

path?: Path

The path to set the properties in the EnvironmentState.

strategy?: SourceStrategy

The strategy to add properties to the EnvironmentState.

Methods

Generated using TypeDoc