KC's Workspace
    Preparing search index...

    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.

    interface TypeReference {
        aliasSymbol?: Symbol;
        aliasTypeArguments?: readonly Type[];
        flags: TypeFlags;
        node?: TypeReferenceNode | ArrayTypeNode | TupleTypeNode;
        objectFlags: ObjectFlags;
        pattern?: DestructuringPattern;
        symbol: Symbol;
        target: GenericType;
        typeArguments?: readonly Type[];
        getApparentProperties(): Symbol[];
        getBaseTypes(): BaseType[] | undefined;
        getCallSignatures(): readonly Signature[];
        getConstraint(): Type | undefined;
        getConstructSignatures(): readonly Signature[];
        getDefault(): Type | undefined;
        getFlags(): TypeFlags;
        getNonNullableType(): Type;
        getNumberIndexType(): Type | undefined;
        getProperties(): Symbol[];
        getProperty(propertyName: string): Symbol | undefined;
        getStringIndexType(): Type | undefined;
        getSymbol(): Symbol | undefined;
        isClass(): this is InterfaceType;
        isClassOrInterface(): this is InterfaceType;
        isIndexType(): this is IndexType;
        isIntersection(): this is IntersectionType;
        isLiteral(): this is LiteralType;
        isNumberLiteral(): this is NumberLiteralType;
        isStringLiteral(): this is StringLiteralType;
        isTypeParameter(): this is TypeParameter;
        isUnion(): this is UnionType;
        isUnionOrIntersection(): this is UnionOrIntersectionType;
    }

    Hierarchy (View Summary)

    Index

    Properties

    aliasSymbol?: Symbol
    aliasTypeArguments?: readonly Type[]
    flags: TypeFlags
    objectFlags: ObjectFlags
    symbol: Symbol
    target: GenericType
    typeArguments?: readonly Type[]

    Methods