Skip to content

Mapper

Mapper aggregates the traits of a map.

contains(value): Val

Contains returns true if the value exists within the object.

Val

Val

Container.contains


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


find(key): Val | undefined

Find returns a value, if one exists, for the input key.

Val

Val | undefined


get(index): Val

Get the value at the specified index or error.

Val

Val

Indexer.get


iterator(): Iterator

Iterator returns a new iterator view of the struct.

Iterator

Iterable.iterator


size(): Val

Size returns the number of elements or length of the value.

Val

Sizer.size


type(): RefType

Type returns the TypeValue of the value.

RefType

Val.type


value(): unknown

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

unknown

Val.value