Skip to content

Intellisense support in 'this' keyword inside an object. #9583

Closed
@sant123

Description

@sant123

Hi, maybe this is a bug but is not showing any intellisense regarding with the current object.

TypeScript Version: 1.8.0

Code

interface Person {
    name : string;
    lastName : string;
    age: number;

    greet() : string;
}


var People : Person[] = [{
    name : "Santi",
    lastName : "Aguilar",
    age : 21,
    greet : function(){
        return this.name;
    }
}]

Expected behavior:

Offer intellisense for the current object (this)

Actual behavior:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Design LimitationConstraints of the existing architecture prevent this from being fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions