Class JSDoc::JSDocUnionTypeExpr

A union type expression such as number|string.

Direct supertypes

Indirect supertypes

Predicates

getAnAlternative

Gets one of the type alternatives of this union 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