Class TypeScript::ClassType

A type that refers to a class, possibly with type arguments.

Direct supertypes

Indirect supertypes

Fields

Predicates

getClass

Gets the declaration of the referenced class.

Inherited predicates

getAConstructorSignature

Gets a constructor call signature.

from Type
getADefinition

Gets a syntactic declaration of this named type.

from TypeReference
getAFunctionSignature

Gets a function call signature.

from Type
getAMethodOverload

Gets a signature of the method of the given name.

from Type
getASignature

Gets a signature of the given kind.

from Type
getATypeArgument

Gets a type argument provided in this type.

from TypeReference
getChild

Gets the ith child of this type.

from Type
getConstructorSignature

Gets the nth constructor call signature.

from Type
getFunctionSignature

Gets the nth function call signature.

from Type
getKind

Gets the kind of this type, which is an integer value denoting how the type is stored in the database.

from Type
getLastConstructorSignature

Gets the last constructor call signature.

from Type
getLastFunctionSignature

Gets the last function call signature.

from Type
getLastSignature

Gets the last signature of the given kind.

from Type
getMethod

Gets the last signature of the method of the given name.

from Type
getMethodOverload

Gets the nth overload signature of the given method.

from Type
getNumConstructorSignature

Gets the number of constructor call signatures.

from Type
getNumFunctionSignature

Gets the number of function call signatures.

from Type
getNumSignature

Gets the number of signatures of the given kind.

from Type
getNumTypeArgument

Gets the number of type arguments provided in this type.

from TypeReference
getNumberIndexType

Gets the type of the number index signature on this type, such as T in the type { [n: number]: T }.

from Type
getProperty

Gets the type of the given property of this type.

from Type
getSignature

Gets the nth signature of the given kind present on this type.

from Type
getStringIndexType

Gets the type of the string index signature on this type, such as T in the type { [s: string]: T }.

from Type
getTypeArgument

Gets the nth type argument provided in this type, such as string in Promise<string>.

from TypeReference
getTypeName

Gets the canonical name of the type being referenced.

from TypeReference
hasQualifiedName

Holds if the referenced type has the given qualified name, rooted in the global scope.

from TypeReference
hasQualifiedName

Holds if the referenced type is exported from the given module under the given qualified name.

from TypeReference
hasTypeArguments

Holds if type arguments are provided in this type.

from TypeReference
hasUnderlyingType

Holds if this refers to the given named type, or is declared as a subtype thereof, or is a union or intersection containing such a type.

from Type
hasUnderlyingType

Holds if this refers to the given named type, or is declared as a subtype thereof, or is a union or intersection containing such a type.

from Type
hasUnderlyingTypeName

Holds if this refers to the given named type, or is declared as a subtype thereof, or is a union or intersection containing such a type.

from Type
toString

Gets a string representation of this type.

from Type
unfold

Repeatedly unfolds union and intersection types and gets any of the underlying types, or this type itself if it is not a union or intersection.

from Type

Charpred