Skip to content

[I] TypeRefType

The native generic scalar used to store a compile-time type reference. Its template argument constrains the referenced type.

PropertyModifierTypeDescriptionOverridesInherited from
baseScalar?publicScalarScalar this scalar extends.-Scalar.baseScalar
constructorspublicMap<string, ScalarConstructor>Constructors keyed by name, including inherited constructors rebound to this scalar.-Scalar.constructors
creating?publictrueIf the type is currently being created.-Scalar.creating
decoratorspublicDecoratorApplication[]Applications used when finishing this type, including copied or synthesized applications.-Scalar.decorators
derivedScalarspublicScalar[]Direct children. This is the reverse relation of See baseScalar-Scalar.derivedScalars
entityKindreadonly"Type"Distinguishes semantic types from values and parameter constraints.-Scalar.entityKind
expressionpublicbooleanWhether this scalar was declared in expression position (anonymous scalar ...) rather than as a named statement.-Scalar.expression
instantiationParameters?publicType[]Legacy instantiation metadata. The compiler’s type checker does not populate this field, so its absence does not indicate whether this type is a template instance.-Scalar.instantiationParameters
isFinishedpublicbooleanReflect if a type has been finished(Decorators have been called). There is multiple reasons a type might not be finished: - a template declaration will not - a template instance that argument that are still template parameters - a template instance that is only partially instantiated(like a templated operation inside a templated interface)-Scalar.isFinished
kindpublic"Scalar"Discriminant for scalar types rather than scalar values.-Scalar.kind
namepublic"TypeRef"The name of the standard type-reference declaration.Scalar.name-
namespace?publicNamespaceNamespace the scalar was defined in.-Scalar.namespace
node?publicScalarStatementNode | ScalarDeclarationExpressionNodeNode used to construct this type. If the node is undefined it means the type was dynamically built. With typekit for example.-Scalar.node
templateMapper?publicTypeMapperArgument substitutions for an instantiation; absent on an uninstantiated declaration.-Scalar.templateMapper
templateNode?publicNodeOriginating template node, when retained separately from the type’s source node.-Scalar.templateNode