Skip to content

Unknown

Unknown collects expression ids which caused the current value to become unknown.

new Unknown(attributeTrailsValue?): Unknown

Map<number, AttributeTrail[]> = ...

Unknown

attributeTrails(): Map<number, AttributeTrail[]>

attributeTrails returns the underlying attribute trail map for internal merge helpers.

Map<number, AttributeTrail[]>


contains(other): boolean

Contains returns true if the input unknown is a subset of the current unknown.

Unknown

boolean


convertToNative(): 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

Val.convertToNative


convertToType(_): Val

ConvertToType is an identity function since unknown values cannot be modified.

RefType

Val

Val.convertToType


equal(_): Val

Equal is an identity function since unknown values cannot be modified.

Val

Val

Val.equal


getAttributeTrails(id): [AttributeTrail[] | undefined, boolean]

GetAttributeTrails returns the attribute trails for a given expression id.

number

[AttributeTrail[] | undefined, boolean]


hasUnknownFunction(): boolean

HasUnknownFunction returns whether any attribute trail is unspecified.

boolean


ids(): number[]

IDs returns the set of unknown expression ids contained by this value.

number[]


toString(): string

Returns a string representation of an object.

string


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