Skip to content

[I] Namespace

A declaration container; nested namespaces link to their parent and the global namespace is unnamed.

PropertyModifierTypeDescriptionOverridesInherited from
creating?publictrueIf the type is currently being created.-BaseType.creating
decoratorDeclarationspublicMap<string, Decorator>The decorators declared in the namespace. Order is implementation-defined and may change.--
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
enumspublicMap<string, Enum>The enums in the namespace. Order is implementation-defined and may change.--
functionDeclarationspublicMap<string, FunctionValue<never[], unknown>>The functions declared in the namespace. Order is implementation-defined and may change.--
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
interfacespublicMap<string, Interface>The interfaces in the namespace. Order is implementation-defined and may change.--
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"Namespace"Discriminant for namespace containers rather than their declarations.BaseType.kind-
modelspublicMap<string, Model>The models in the namespace. Order is implementation-defined and may change.--
namepublicstringLocal namespace segment, or an empty string for the global namespace.--
namespace?publicNamespaceParent namespace; absent on the global namespace.--
namespacespublicMap<string, Namespace>The sub-namespaces in the namespace. Order is implementation-defined and may change.--
node?publicJsNamespaceDeclarationNode | NamespaceStatementNodeNode used to construct this type. If the node is undefined it means the type was dynamically built. With typekit for example.BaseType.node-
operationspublicMap<string, Operation>The operations in the namespace. Order is implementation-defined and may change.--
scalarspublicMap<string, Scalar>The scalars in the namespace. Order is implementation-defined and may change.--
unionspublicMap<string, Union>The unions in the namespace. Order is implementation-defined and may change.--