Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TypeChecker

Hierarchy

  • TypeChecker

Index

Methods

getAliasedSymbol

getAmbientModules

  • getAmbientModules(): Symbol[]

getApparentType

getAugmentedPropertiesOfType

  • getAugmentedPropertiesOfType(type: Type): Symbol[]

getBaseConstraintOfType

  • getBaseConstraintOfType(type: Type): Type

getBaseTypeOfLiteralType

  • getBaseTypeOfLiteralType(type: Type): Type

getBaseTypes

getConstantValue

getContextualType

getDeclaredTypeOfSymbol

getDefaultFromTypeParameter

  • getDefaultFromTypeParameter(type: Type): Type

getExportSpecifierLocalTargetSymbol

getExportSymbolOfSymbol

  • If a symbol is a local symbol with an associated exported symbol, returns the exported symbol. Otherwise returns its input. For example, at export type T = number;: - getSymbolAtLocation at the location T will return the exported symbol for T. - But the result of getSymbolsInScope will contain the local symbol for T, not the exported symbol. - Calling getExportSymbolOfSymbol on that local symbol will return the exported symbol.

    Parameters

    Returns Symbol

getExportsOfModule

getFullyQualifiedName

  • getFullyQualifiedName(symbol: Symbol): string

getIndexInfoOfType

getIndexTypeOfType

getJsxIntrinsicTagNamesAt

  • getJsxIntrinsicTagNamesAt(location: Node): Symbol[]

getNonNullableType

getNullableType

getPrivateIdentifierPropertyOfType

  • getPrivateIdentifierPropertyOfType(leftType: Type, name: string, location: Node): Symbol

getPropertiesOfType

getPropertyOfType

  • getPropertyOfType(type: Type, propertyName: string): Symbol

getPropertySymbolOfDestructuringAssignment

getResolvedSignature

  • returns unknownSignature in the case of an error. returns undefined if the node is not valid.

    Parameters

    • node: CallLikeExpression
    • Optional candidatesOutArray: Signature[]
    • Optional argumentCount: number

      Apparent number of arguments, passed in case of a possibly incomplete call. This should come from an ArgumentListInfo. See signatureHelp.ts.

    Returns Signature

getReturnTypeOfSignature

getRootSymbols

getShorthandAssignmentValueSymbol

  • getShorthandAssignmentValueSymbol(location: Node): Symbol
  • The function returns the value (local variable) symbol of an identifier in the short-hand property assignment. This is necessary as an identifier in short-hand property assignment can contains two meaning: property name and property value.

    Parameters

    Returns Symbol

getSignatureFromDeclaration

getSignaturesOfType

getSymbolAtLocation

getSymbolOfExpando

  • getSymbolOfExpando(node: Node, allowDeclaration: boolean): Symbol

getSymbolsInScope

getSymbolsOfParameterPropertyDeclaration

getTypeArguments

getTypeAtLocation

getTypeFromTypeNode

getTypeOfAssignmentPattern

getTypeOfSymbolAtLocation

getWidenedType

indexInfoToIndexSignatureDeclaration

isArgumentsSymbol

  • isArgumentsSymbol(symbol: Symbol): boolean

isImplementationOfOverload

isOptionalParameter

isUndefinedSymbol

  • isUndefinedSymbol(symbol: Symbol): boolean

isUnknownSymbol

  • isUnknownSymbol(symbol: Symbol): boolean

isValidPropertyAccess

runWithCancellationToken

  • Depending on the operation performed, it may be appropriate to throw away the checker if the cancellation token is triggered. Typically, if it is used for error checking and the operation is cancelled, then it should be discarded, otherwise it is safe to keep.

    Type parameters

    • T

    Parameters

    Returns T

signatureToSignatureDeclaration

signatureToString

symbolToEntityName

symbolToExpression

symbolToParameterDeclaration

symbolToString

symbolToTypeParameterDeclarations

tryGetMemberInModuleExports

  • tryGetMemberInModuleExports(memberName: string, moduleSymbol: Symbol): Symbol

typeParameterToDeclaration

typePredicateToString

typeToString

typeToTypeNode

Generated using TypeDoc