TypeScript/tests/cases/fourslash/goToDefinitionRest.ts
Andy 998beadba2
Support goto-definition for index signatures (#23220)
* Support goto-definition for index signatures

* Use checker.getIndexInfoOfType

* Handle undefined info.declaration
2018-04-09 12:48:41 -07:00

13 lines
244 B
TypeScript

/// <reference path='fourslash.ts'/>
////interface Gen {
//// x: number;
//// /*1*/parent: Gen;
//// millenial: string;
////}
////let t: Gen;
////var { x, ...rest } = t;
////rest.[|/*2*/parent|];
verify.goToDefinition('2', [ '1' ]);