Consider contextually typing class member functions by their base class/interface members #1373
Closed
Description
here is my code
export enum SortDir
{
Asc,
Desc,
Flip
}
export interface ISortInfo
{
getvalue(x: QuerySummary): any; //change to number|string in TypeScript 1.4
order: SortDir;
ordercalc?: number;
}
class SortByQueryId implements ISortInfo
{
getvalue = x => x.QueryId;
order = SortDir.Flip;
}
when I type "x." I expect to see the properties of QuerySummary but I do not. VS still thinks the type is 'any'