Skip to content

[I] Operation

A callable API signature, declared in a namespace or owned by an interface.

PropertyModifierTypeDescriptionOverridesInherited from
creating?publictrueIf the type is currently being created.-BaseType.creating
decoratorspublicDecoratorApplication[]--DecoratedType.decorators
entityKindreadonly"Type"--BaseType.entityKind
instantiationParameters?publicType[]--BaseType.instantiationParameters
interface?publicInterfaceOwning interface, or absent for a namespace-level operation.--
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"Operation"Discriminant for API operation signatures rather than TypeSpec function values.BaseType.kind-
namepublicstringLocal operation name, excluding namespace and interface qualifiers.--
namespace?publicNamespaceContaining namespace, including for operations declared inside an interface.--
node?publicOperationStatementNodeNode used to construct this type. If the node is undefined it means the type was dynamically built. With typekit for example.BaseType.node-
parameterspublicModelModel whose properties describe the operation’s ordered parameters.--
returnTypepublicTypeResult type, including the void intrinsic for an operation without a return value.--
sourceOperation?publicOperationThe operation that is referenced via op is.--
templateMapper?publicTypeMapper--TemplatedTypeBase.templateMapper
templateNode?publicNode--TemplatedTypeBase.templateNode