Class TypeScript::CallSignatureType

A function or constructor signature in a TypeScript type.

Direct supertypes

Known direct subtypes

Predicates

getAChildType

Gets a type contained in this signature, that is, the return type or a parameter type.

getAParameter

Gets the type of a parameter of this signature.

getAParameterName

Gets the name of a parameter of this signature.

getChild

Gets the nth type contained in this signature, that is, a parameter or return type.

getKind

Gets a value indicating if this is a function or constructor signature.

getNumOptionalParameter

Gets the number of optional parameters, that is, parameters that are marked as optional with the ? suffix.

getNumParameter

Gets the number of parameters.

getNumRequiredParameter

Gets the number of required parameters, that is, parameters that are not marked as optional with the ? suffix.

getNumTypeParameter

Gets the number of type parameters on this call signature.

getParameter

Gets the type of the nth parameter of this signature.

getParameterName

Gets the name of the nth parameter.

getReturnType

Gets the return type of this signature.

getTypeParameterBound

Gets the bound on the nth type parameter.

getTypeParameterName

Gets the name of the nth type parameter.

hasTypeParameters

Holds if this call signature declares type parameters.

isOptionalParameter

Holds if the nth parameter is declared optional with the ? suffix.

isRequiredParameter

Holds if the nth parameter is required, that is, it is not marked as optional with the ? suffix.

toString

Gets a string representation of this signature.