Cell API
    Preparing search index...

    Class ExpressionEvaluator

    Evaluates ${...} expressions with the project's own @celljs/core (@celljs/core/el), so build-time and runtime evaluation are the same code: references between keys resolve in any order, and what an expression returns (an environment variable, for instance) is never evaluated again.

    Index
    util: ExpressionUtil
    utils: Map<string, ExpressionUtil> = ...
    • Evaluates target in place and returns it. The objects of extra (e.g. env) are visible to the expressions as they are, without being evaluated, and are removed afterwards.

      Type Parameters

      • T extends Record<string, unknown>

      Parameters

      • target: T
      • extra: Record<string, object> = {}

      Returns T

    • Evaluates one text against ctx.

      Parameters

      • text: string
      • ctx: Record<string, unknown>
      • path: string = 'value'

      Returns unknown

    • Parameters

      • require: Require
      • root: string
      • cause: unknown

      Returns CellError