Function cxEvaluated

  • Creates evaluating context entry definer.

    Evaluates entry value at most once per context.

    Type Parameters

    • TValue

      Combined context value type.

    • TAsset = TValue

      A type of context value assets to combine.

    Parameters

    • evaluate: ((this, target) => undefined | null | TValue)

      Evaluates entry value out. Accepts entry definition target as the only parameter.

        • (this, target): undefined | null | TValue
        • Parameters

          Returns undefined | null | TValue

    • byDefault: {
          byDefault?(this, target) => undefined | null | TValue;
      } = {}

      Evaluates default entry value. Accepts entry definition target as the only parameter. Evaluates to nothing by default.

    Returns Definer<TValue, TAsset>

    New context entry definer.

Generated using TypeDoc