Options
All
  • Public
  • Public/Protected
  • All
Menu

The case of a failed mergeConfiguration: merging errors exist and eventually some intrus.

Intrus are the fields in newAttributes that are actually not part of the original data structure.

Errors can arise in two cases:

  • when an attributes in newAttributes exist in the original data structure but types do not align.
  • when some attributes in the original data structure disappear because of the merge

Type parameters

  • T

Hierarchy

Index

Constructors

constructor

  • new InconsistentConfiguration<T>(original: T, newAttributes: any, result: T, intrus: string[], missings: string[], typeErrors: { actualValue: string; attributeName: string; error: string; expectedType: string }[]): InconsistentConfiguration<T>
  • Type parameters

    • T

    Parameters

    • original: T

      static persistent data (in Flux: the one defined in the settings panel of the module)

    • newAttributes: any

      the attributes that have been requested to be updated (e.g. those returned in the configuration part returned by an adaptor)

    • result: T

      the result of merging original with newAttributes

    • intrus: string[]

      a list of intrus: fields in newAttributes that are actually not part of the persistent data. The values of the array are the path to the attributes.

    • missings: string[]

      a list of missing attributes in result, the values of the array are the path to these attributes.

    • typeErrors: { actualValue: string; attributeName: string; error: string; expectedType: string }[]

      the description of the errors

    Returns InconsistentConfiguration<T>

Properties

Readonly intrus

intrus: string[] = ...

Readonly missings

missings: string[]

Readonly newAttributes

newAttributes: any

Readonly original

original: T

Readonly result

result: T

Readonly typeErrors

typeErrors: { actualValue: string; attributeName: string; error: string; expectedType: string }[]

Generated using TypeDoc