CodeQL library for JavaScript/TypeScript
codeql/javascript-all 2.1.1 (changelog, source)
Search

Class ConstructorCallSignatureType

A constructor call signature in a type, that is, a signature with the new keyword.

Import path

import javascript

Direct supertypes

Indirect supertypes

Inherited predicates

getAChildType

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

from CallSignatureType
getAParameter

Gets the type of a parameter of this signature, including the rest parameter, if any.

from CallSignatureType
getAParameterName

Gets the name of a parameter of this signature.

from CallSignatureType
getChild

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

from CallSignatureType
getKind

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

from CallSignatureType
getNumOptionalParameter

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

from CallSignatureType
getNumParameter

Gets the number of parameters, including the rest parameter, if any.

from CallSignatureType
getNumRequiredParameter

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

from CallSignatureType
getNumTypeParameter

Gets the number of type parameters on this call signature.

from CallSignatureType
getParameter

Gets the type of the nth parameter declared in this signature.

from CallSignatureType
getParameterName

Gets the name of the nth parameter.

from CallSignatureType
getRestParameterArrayType

Gets the type of the rest parameter as an array, if it exists.

from CallSignatureType
getRestParameterType

Gets the type of the rest parameter, if any.

from CallSignatureType
getReturnType

Gets the return type of this signature.

from CallSignatureType
getTypeParameterBound

Gets the bound on the nth type parameter.

from CallSignatureType
getTypeParameterName

Gets the name of the nth type parameter.

from CallSignatureType
hasRestParameter

Holds if this signature declares a rest parameter, such as (x: number, ...y: string[]).

from CallSignatureType
hasTypeParameters

Holds if this call signature declares type parameters.

from CallSignatureType
isAbstract

Holds if this signature is abstract.

from CallSignatureType
isOptionalParameter

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

from CallSignatureType
isRequiredParameter

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

from CallSignatureType
toString

Gets a string representation of this signature.

from CallSignatureType