Use explicit pairs `verify.goToDefinition([["a", "b"], ["c", "d"]])` instead of `verify.goToDefinition("a", "b", "c", "d")`. Also provide an option `verify.goToDefinition({ a: "b", c: "d" })` for cases where the starts are not theirselves lists.
13 lines
228 B
TypeScript
13 lines
228 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
////var /*varDef*/x = {
|
|
//// /*varProp*/x
|
|
////}
|
|
////let /*letDef*/y = {
|
|
//// /*letProp*/y
|
|
////}
|
|
|
|
verify.goToDefinition({
|
|
varProp: "varDef",
|
|
letProp: "letDef"
|
|
});
|