Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TypeReference

Type references (ObjectFlags.Reference). When a class or interface has type parameters or a "this" type, references to the class or interface are made using type references. The typeArguments property specifies the types to substitute for the type parameters of the class or interface and optionally includes an extra element that specifies the type to substitute for "this" in the resulting instantiation. When no extra argument is present, the type reference itself is substituted for "this". The typeArguments property is undefined if the class or interface has no type parameters and the reference isn't specifying an explicit "this" argument.

Hierarchy

Index

Properties

Optional aliasSymbol

aliasSymbol: Symbol

Optional aliasTypeArguments

aliasTypeArguments: readonly Type[]

flags

flags: TypeFlags

Optional node

objectFlags

objectFlags: ObjectFlags

Optional pattern

symbol

symbol: Symbol

target

target: GenericType

Optional typeArguments

typeArguments: readonly Type[]

Methods

getApparentProperties

  • getApparentProperties(): Symbol[]

getBaseTypes

getCallSignatures

getConstraint

  • getConstraint(): Type

getConstructSignatures

  • getConstructSignatures(): readonly Signature[]

getDefault

  • getDefault(): Type

getFlags

getNonNullableType

  • getNonNullableType(): Type

getNumberIndexType

  • getNumberIndexType(): Type

getProperties

getProperty

  • getProperty(propertyName: string): Symbol
  • Parameters

    • propertyName: string

    Returns Symbol

getStringIndexType

  • getStringIndexType(): Type

getSymbol

isClass

isClassOrInterface

isIntersection

isLiteral

isNumberLiteral

isStringLiteral

isTypeParameter

isUnion

isUnionOrIntersection

Generated using TypeDoc