TypeReference

external interface TypeReference : ObjectType(source)

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.

Inheritors

Properties

Link copied to clipboard
abstract external var aliasSymbol: Symbol?
Link copied to clipboard
abstract external var aliasTypeArguments: ReadonlyArray<Type>?
Link copied to clipboard
abstract external var flags: TypeFlags
Link copied to clipboard
abstract external var node: TypeReferenceNodeField?
Link copied to clipboard
abstract external var objectFlags: ObjectFlags
Link copied to clipboard
abstract external var pattern: DestructuringPattern?
Link copied to clipboard
abstract external var symbol: Symbol
Link copied to clipboard
abstract external var target: GenericType
Link copied to clipboard
abstract external var typeArguments: ReadonlyArray<Type>?

Functions

Link copied to clipboard
abstract external fun getApparentProperties(): ReadonlyArray<Symbol>
Link copied to clipboard
abstract external fun getBaseTypes(): ReadonlyArray<BaseType>?
Link copied to clipboard
abstract external fun getCallSignatures(): ReadonlyArray<Signature>
Link copied to clipboard
abstract external fun getConstraint(): Type?
Link copied to clipboard
Link copied to clipboard
abstract external fun getDefault(): Type?
Link copied to clipboard
abstract external fun getFlags(): TypeFlags
Link copied to clipboard
abstract external fun getNonNullableType(): Type
Link copied to clipboard
abstract external fun getNumberIndexType(): Type?
Link copied to clipboard
abstract external fun getProperties(): ReadonlyArray<Symbol>
Link copied to clipboard
abstract external fun getProperty(propertyName: String): Symbol?
Link copied to clipboard
abstract external fun getStringIndexType(): Type?
Link copied to clipboard
abstract external fun getSymbol(): Symbol?
Link copied to clipboard
abstract external fun isClass(): Boolean
Link copied to clipboard
abstract external fun isClassOrInterface(): Boolean
Link copied to clipboard
abstract external fun isIndexType(): Boolean
Link copied to clipboard
abstract external fun isIntersection(): Boolean
Link copied to clipboard
abstract external fun isLiteral(): Boolean
Link copied to clipboard
abstract external fun isNumberLiteral(): Boolean
Link copied to clipboard
abstract external fun isStringLiteral(): Boolean
Link copied to clipboard
abstract external fun isTypeParameter(): Boolean
Link copied to clipboard
abstract external fun isUnion(): Boolean
Link copied to clipboard
abstract external fun isUnionOrIntersection(): Boolean