Skip to content

Val

Val defines the functions supported by all expression values.

Val implementations may specialize the behavior of the value through the addition of traits.

convertToNative(typeDesc): unknown

ConvertToNative converts the Value to a native TypeScript value according to the provided type description, or throws if the conversion is not feasible.

unknown

unknown


convertToType(typeValue): Val

ConvertToType supports type conversions between CEL value types supported by the expression language.

RefType

Val


equal(other): Val

Equal returns true if the other value has the same type and content as the implementing value.

Val

Val


type(): RefType

Type returns the TypeValue of the value.

RefType


value(): unknown

Value returns the raw value of the instance which may not be directly compatible with the expression language types.

unknown