MutableMapper
MutableMapper emits an immutable result after an intermediate computation.
Extends
Section titled “Extends”Methods
Section titled “Methods”contains()
Section titled “contains()”contains(
value):Val
Contains returns true if the value exists within the object.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”convertToNative()
Section titled “convertToNative()”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.
Parameters
Section titled “Parameters”typeDesc
Section titled “typeDesc”unknown
Returns
Section titled “Returns”unknown
Inherited from
Section titled “Inherited from”convertToType()
Section titled “convertToType()”convertToType(
typeValue):Val
ConvertToType supports type conversions between CEL value types supported by the expression language.
Parameters
Section titled “Parameters”typeValue
Section titled “typeValue”Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”equal()
Section titled “equal()”equal(
other):Val
Equal returns true if the other value has the same type and content as the implementing value.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”find()
Section titled “find()”find(
key):Val|undefined
Find returns a value, if one exists, for the input key.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Val | undefined
Inherited from
Section titled “Inherited from”get(
index):Val
Get the value at the specified index or error.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”insert()
Section titled “insert()”insert(
k,v):Val
Insert a key, value pair into the map.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”iterator()
Section titled “iterator()”iterator():
Iterator
Iterator returns a new iterator view of the struct.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”size()
Section titled “size()”size():
Val
Size returns the number of elements or length of the value.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”toImmutableMap()
Section titled “toImmutableMap()”toImmutableMap():
Mapper
ToImmutableMap converts a mutable map into an immutable map.
Returns
Section titled “Returns”type()
Section titled “type()”type():
RefType
Type returns the TypeValue of the value.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”value()
Section titled “value()”value():
unknown
Value returns the raw value of the instance which may not be directly compatible with the expression language types.
Returns
Section titled “Returns”unknown