ExpressionOrValue type

Accepts either a plain value T or an Expression<T> substitution.

Use this on scalar/leaf Input sites (primitives, enums, literal-only unions) where a full InputOf<...> structural extension doesn't apply. The result is a simple discriminated union; call isExpression() to branch on the runtime shape.

type ExpressionOrValue<T> = T | Expression<T>