* Support goto-definition for index signatures * Use checker.getIndexInfoOfType * Handle undefined info.declaration
15 lines
354 B
TypeScript
15 lines
354 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
////interface I {
|
|
//// /*defI*/[x: string]: boolean;
|
|
////}
|
|
////interface J {
|
|
//// /*defJ*/[x: string]: number;
|
|
////}
|
|
////declare const i: I;
|
|
////i.[|/*useI*/foo|];
|
|
////declare const ij: I | J;
|
|
////ij.[|/*useIJ*/foo|];
|
|
|
|
verify.goToDefinition("useI", ["defI"]);
|
|
verify.goToDefinition("useIJ", ["defI", "defJ"]);
|