Skip to content

Bool

Bool implements ref.Val and supports comparison and negation.

new Bool(inner): Bool

boolean

Bool

compare(other): Val

Compare this value to the input other value.

Val

Val

Comparer.compare


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

Val.convertToNative


convertToType(typeValue): Val

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

RefType

Val

Val.convertToType


equal(other): Val

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

Val

Val

Val.equal


isZeroValue(): boolean

IsZeroValue returns true if the boolean value is false.

boolean


negate(): Val

Negate returns the complement of the current value.

Val

Negater.negate


type(): RefType

Type returns the TypeValue of the value.

RefType

Val.type


value(): boolean

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

boolean

Val.value