Module TypeScript
Import path
import semmle.javascript.TypeScriptImports
| javascript | Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML. |
Classes
| AnonymousInterfaceType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| AnyType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| ArrayType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| ArrayTypeExpr | An array type, such as |
| AsTypeAssertion | A type assertion specifically of the form |
| BigIntLiteralType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| BigIntLiteralTypeExpr | A bigint literal used as a TypeScript type annotation. |
| BigIntType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| BooleanLikeType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| BooleanLiteralType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| BooleanLiteralTypeExpr | A boolean literal used as a type. |
| BooleanType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| CallSignatureType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| CanonicalTypeVariableType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| ClassType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| ConditionalTypeExpr | A conditional type annotation, such as |
| ConditionalTypeScope | A scope induced by a conditional type expression whose |
| ConstructorCallSignatureType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| ConstructorTypeExpr | A constructor type, such as |
| EnumDeclaration | A TypeScript enum declaration, such as the following declaration: |
| EnumLiteralType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| EnumMember | A member of a TypeScript enum declaration, such as |
| EnumScope | A scope induced by an enum declaration, containing the names of its enum members. |
| EnumType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| ExportAsNamespaceDeclaration | A TypeScript export of form |
| ExportAssignDeclaration | A TypeScript “export-assign” declaration. |
| ExpressionWithTypeArguments | An expression with type arguments, occurring as the super-class expression of a class, for example: |
| ExternalModuleDeclaration | A TypeScript declaration of form |
| ExternalModuleReference | A |
| ExternalModuleScope | A scope induced by a declaration of form |
| FunctionCallSignatureType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| FunctionTypeExpr | A TypeScript function type, such as |
| GenericTypeExpr | A type consisting of a name and at least one type argument, such as |
| GlobalAugmentationDeclaration | A TypeScript declaration of form |
| ImportEqualsDeclaration | A TypeScript “import-equals” declaration. |
| ImportNamespaceAccess | An import used in the context of a namespace inside a type annotation, such as in |
| ImportTypeAccess | An import used in the context of a type, such as in |
| ImportTypeExpr | An import inside a type annotation, such as in |
| ImportVarTypeAccess | An import used in the context of a variable type, such as in |
| IndexedAccessTypeExpr | A type of form |
| InferTypeExpr | A type annotation of form |
| InterfaceDeclaration | A TypeScript interface declaration. |
| InterfaceDefinition | A TypeScript interface declaration, inline interface type, or function type. |
| InterfaceScope | A scope induced by an interface declaration, containing the type parameters declared on the interface. |
| InterfaceType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| InterfaceTypeExpr | An inline TypeScript interface type, such as |
| IntersectionType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| IntersectionTypeExpr | A type of form |
| IsTypeExpr | A function return type of form |
| KeyofTypeExpr | A type of form |
| LexicalTypeVariableType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| LiteralType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| LiteralTypeExpr | A string, number, or boolean literal used as a type. |
| LocalNamespaceAccess | An identifier that refers to a namespace from inside a type annotation. |
| LocalNamespaceDecl | An identifier that declares a local name for a namespace, that is, the name of an actual namespace declaration or the local name of an import. |
| LocalNamespaceName | The local name for a namespace in a particular scope. |
| LocalTypeAccess | An identifier that is used as part of a type, such as |
| LocalTypeName | The local name for a type in a particular scope. |
| LocalVarTypeAccess | An identifier that refers to a variable from inside a type. |
| MappedTypeExpr | A type of form |
| MappedTypeScope | A scope induced by a mapped type expression, containing the type parameter declared as part of the type. |
| NamespaceAccess | A possibly qualified name that refers to a namespace from inside a type annotation. |
| NamespaceDeclaration | A TypeScript namespace declaration. |
| NamespaceDefinition | A statement that defines a namespace, that is, a namespace declaration or enum declaration. |
| NamespaceRef | A possibly qualified identifier that refers to or declares a local name for a namespace. |
| NeverType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| NonNullAssertion | A TypeScript expression of form |
| NullType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| NumberLikeType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| NumberLiteralType | A number literal as a static type. |
| NumberLiteralTypeExpr | A number literal used as a type. |
| NumberType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| ObjectKeywordType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| OptionalTypeExpr | An optional type element in a tuple type, such as |
| ParenthesizedTypeExpr | A type expression enclosed in parentheses. |
| PlainArrayType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| PlainFunctionTypeExpr | A function type that is not a constructor type, such as |
| PlainSymbolType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| PredefinedTypeExpr | A use of the predefined type |
| PredicateTypeExpr | A function return type that refines the type of one of its parameters or |
| PrefixTypeAssertion | A type assertion specifically of the form |
| PromiseType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| QualifiedNamespaceAccess | A qualified name that refers to a namespace from inside a type annotation. |
| QualifiedTypeAccess | A qualified name that is used as part of a type, such as |
| QualifiedVarTypeAccess | A qualified name that refers to a variable from inside a type. |
| ReadonlyArrayType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| ReadonlyTypeExpr | A type of form |
| ReferenceImport | A TypeScript comment of one of the two forms: |
| ReferencePathImport | A TypeScript comment of the form: |
| ReferenceTypesImport | A TypeScript comment of the form: |
| RestTypeExpr | A rest element in a tuple type, such as |
| SatisfiesExpr | A satisfies type asserion of the form |
| SignatureKind | A value indicating if a signature is a function or constructor signature. |
| StringLikeType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| StringLiteralType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| StringLiteralTypeExpr | A string literal used as a type. |
| StringType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| SymbolType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| TSGlobalDeclImport | A reference to a global variable for which there is a TypeScript type annotation suggesting that it contains the namespace object of a module. |
| TemplateLiteralTypeExpr | A template literal used as a type. |
| ThisType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| ThisTypeExpr | A use of the |
| ThisVarTypeAccess | A |
| TupleType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| TupleTypeExpr | A tuple type such as |
| Type | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| TypeAccess | A possibly qualified name that is used as part of a type, such as |
| TypeAliasDeclaration | A type alias declaration, that is, a statement of form |
| TypeAliasReference | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| TypeAliasScope | A scope induced by a type alias declaration, containing the type parameters declared the the alias. |
| TypeAssertion | A type assertion, also known as an unchecked type cast, is a TypeScript expression of form |
| TypeDecl | An identifier declaring a type name, that is, the name of a class, interface, type parameter, or import. |
| TypeDefinition | A statement that defines a named type, that is, a class, interface, type alias, or enum declaration. |
| TypeExpr | A type expression, that is, an AST node that is part of a TypeScript type annotation. |
| TypeParameter | A type parameter declared on a class, interface, function, or type alias. |
| TypeParameterized | A program element that supports type parameters, that is, a function, class, interface, type alias, mapped type, or |
| TypeRef | A possibly qualified identifier that declares or refers to a type. |
| TypeReference | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| TypeRootFolder | A folder where TypeScript finds declaration files for imported modules. |
| TypeVariableType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| TypeofType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| TypeofTypeExpr | A type of form |
| UndefinedType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| UnionOrIntersectionType |
|
| UnionOrIntersectionTypeExpr | A union or intersection type, such as |
| UnionType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| UnionTypeExpr | A union type, such as |
| UniqueSymbolType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| UnknownType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |
| VarTypeAccess | A possibly qualified name that refers to a variable from inside a type. |
| VoidType | DEPRECATED. Static types from the TypeScript compiler are not longer available. Use one of the following alternatives instead: - |