Skip to content

[I] TypeRefValue

A value referencing an existing compiler type without copying it. Its inferred storage type is TypeRef<T>; the precise referenced type is available through target.

  • BaseValue
PropertyModifierTypeDescriptionOverridesInherited from
entityKindreadonly"Value"Distinguishes a concrete value from a type or parameter constraint.-BaseValue.entityKind
targetpublicTypeThe referenced compiler type, preserving its original identity.--
typepublicTypeRepresent the storage type of a value. Example const a = "hello"; // Type here would be "hello" const b: string = a; // Type here would be string const c: string | int32 = b; // Type here would be string | int32-BaseValue.type
valueKindpublic"TypeRefValue"Identifies this value as a reference to a compiler type.BaseValue.valueKind-