MCPcopy
hub / github.com/thesysdev/openui / evaluatePropValue

Function evaluatePropValue

packages/lang-core/src/runtime/evaluate-tree.ts:67–77  ·  view source on GitHub ↗

* Evaluate a single prop value with schema awareness. * Delegates to shared evaluatePropCore with evaluate-tree-specific recursion callbacks.

(
  value: unknown,
  evalCtx: EvalContext,
  schemaCtx: SchemaContext,
  reactiveSchema?: unknown,
)

Source from the content-addressed store, hash-verified

65 * Delegates to shared evaluatePropCore with evaluate-tree-specific recursion callbacks.
66 */
67function evaluatePropValue(
68 value: unknown,
69 evalCtx: EvalContext,
70 schemaCtx: SchemaContext,
71 reactiveSchema?: unknown,
72): unknown {
73 return evaluatePropCore(value, evalCtx.ctx, schemaCtx, reactiveSchema, {
74 recurseElement: (el) => evaluateElementProps(el, evalCtx),
75 recurse: (v, rs) => evaluatePropValue(v, evalCtx, schemaCtx, rs),
76 });
77}

Callers 1

evaluateElementPropsFunction · 0.85

Calls 2

evaluatePropCoreFunction · 0.90
evaluateElementPropsFunction · 0.85

Tested by

no test coverage detected