Skip to content

[I] FunctionType

The type of a Function in TypeSpec.

PropertyModifierTypeDescriptionOverridesInherited from
creating?publictrueIf the type is currently being created.-BaseType.creating
entityKindreadonly"Type"--BaseType.entityKind
instantiationParameters?publicType[]--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"FunctionType"-BaseType.kind-
node?publicNodeNode used to construct this type. If the node is undefined it means the type was dynamically built. With typekit for example.-BaseType.node
parameterspublicMixedFunctionParameter[]The parameter constraints of the function.--
returnTypepublicMixedParameterConstraintThe return type constraint of the function.--