Class JSDoc::JSDocFunctionTypeExpr

A function type expression such as function(string): number.

Direct supertypes

Indirect supertypes

Predicates

getAParameterType

Gets a parameter type of this function type.

getParameterType

Gets the ith parameter type of this function type.

getReceiverType

Gets the receiver type of this function type.

getResultType

Gets the result type of this function type.

isConstructorType

Holds if this function type is a constructor type.

Inherited predicates

getChild

Gets the ith child type expression of this type expression.

from JSDocTypeExpr
getIndex

Gets the index of this type expression within its parent.

from JSDocTypeExpr
getParent

Gets the syntactic element in which this type expression is nested, which may either be another type expression or a JSDoc tag.

from JSDocTypeExpr
toString

Gets a textual representation of this element.

from JSDocTypeExpr