Skip to content

[I] StringTemplate

A string template type retaining its literal text and interpolated types as separate spans.

PropertyModifierTypeDescriptionOverridesInherited from
creating?publictrueIf the type is currently being created.-BaseType.creating
entityKindreadonly"Type"Distinguishes semantic types from values and parameter constraints.-BaseType.entityKind
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.-BaseType.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)-BaseType.isFinished
kindpublic"StringTemplate"Discriminant for a template type rather than a concrete string value.BaseType.kind-
node?publicStringTemplateExpressionNodeNode used to construct this type. If the node is undefined it means the type was dynamically built. With typekit for example.BaseType.node-
spanspublicStringTemplateSpan[]Text and interpolated types in source order, including any empty text spans.--
stringValue?publicstringIf the template can be render as as string this is the string value--