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

Class TypeName

The canonical name for a type.

Import path

import javascript

Direct supertypes

Indirect supertypes

Known direct subtypes

    Predicates

    getABaseTypeName

    Gets a type named in the extends or implements clause of this type.

    getADefinition

    Gets a definition of the type with this canonical name, if any.

    getATypeReference

    Gets a type that refers to this canonical name.

    getAnAccess

    Gets a type annotation that refers to this type name.

    getType

    Gets the “self type” that refers to this canonical name.

    Inherited predicates

    describeRoot

    Gets a string describing the root scope of this canonical name.

    from CanonicalName
    getAChild

    Gets a child of this canonical name, that is, an extension of its qualified name.

    from CanonicalName
    getChild

    Gets the child of this canonical name that has the given name, if any.

    from CanonicalName
    getExternalModuleName

    Gets the name of the external module represented by this canonical name, if any.

    from CanonicalName
    getGlobalName

    Gets the name of the global variable represented by this canonical name, if any.

    from CanonicalName
    getModule

    Gets the module represented by this canonical name, if such a module exists and was extracted.

    from CanonicalName
    getName

    Gets the name without prefix.

    from CanonicalName
    getParent

    Gets the parent of this canonical name, that is, the prefix of its qualified name.

    from CanonicalName
    getRelativeName

    Gets the qualified name without the root.

    from CanonicalName
    getRootScope

    Gets the outermost scope from which this type can be accessed by a qualified name (without using an import).

    from CanonicalName
    hasChild

    Holds if this canonical name has a child, i.e. an extension of its qualified name.

    from CanonicalName
    hasQualifiedName

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

    from CanonicalName
    hasQualifiedName

    Holds if this has the given qualified name, rooted in the given external module.

    from CanonicalName
    isExportedMember

    Holds if this canonical name is exported by its parent.

    from CanonicalName
    isModuleRoot

    Holds if this is the export namespace of a module.

    from CanonicalName
    isModuleRoot

    Holds if this is the export namespace of the given module.

    from CanonicalName
    isRoot

    True if this has no parent.

    from CanonicalName
    toString

    Gets the fully qualified name, followed by the name of its enclosing module or file.

    from CanonicalName

    Charpred