atom-typescript
atom-typescript copied to clipboard
autocomplete - no indication for optional properties
Hi guys,
i have created a basic interface with 3 properties, one of them is optional.
interface IClass1Params {
name: string;
phoneNumber: number;
description?: string;
}
when i'm trying to create a new instance that implement the interface, i'm using the autocomplete as my guideline, but i have no indication which property is mandatory or optional..

as a result i need to check the interface explicitly by going to the definition and observe the structure it's a little pain..
thanks, Elior
Sample:
interface IClass1Params {
name?: string;
phoneNumber: number;
}
var foo:IClass1Params = {
/*here*/
}