Skip to content

[I] Interface

A named collection of operations, including operations copied from extended interfaces.

PropertyModifierTypeDescriptionOverridesInherited from
creating?publictrueIf the type is currently being created.-BaseType.creating
decoratorspublicDecoratorApplication[]Applications used when finishing this type, including copied or synthesized applications.-DecoratedType.decorators
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"Interface"Discriminant for operation containers.BaseType.kind-
namepublicstringLocal declaration name, excluding its namespace path.--
namespace?publicNamespaceContaining namespace, when associated with a namespace.--
node?publicInterfaceStatementNodeNode used to construct this type. If the node is undefined it means the type was dynamically built. With typekit for example.BaseType.node-
operationspublicRekeyableMap<string, Operation>The operations of the interface. Operations are ordered in the order that they appear in the source. Operations obtained via interface extends appear before operations declared in the interface body.--
sourceInterfacespublicInterface[]The interfaces that provide additional operations via interface extends. Note that despite the same extends keyword in source form, this is a different semantic relationship than the one from Model to Model.baseModel. Operations from extended interfaces are copied into Interface.operations.--
templateMapper?publicTypeMapperArgument substitutions for an instantiation; absent on an uninstantiated declaration.-TemplatedTypeBase.templateMapper
templateNode?publicNodeOriginating template node, when retained separately from the type’s source node.-TemplatedTypeBase.templateNode