mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
14 lines
415 B
JSON
14 lines
415 B
JSON
// === goToDefinition ===
|
|
// === /index.ts ===
|
|
// export class Foo {
|
|
// member: string;
|
|
// [|methodName|](propName: SomeType): void {}
|
|
// otherMethod() {
|
|
// if (Math.random() > 0.5) {
|
|
// return {x: 42};
|
|
// --- (line: 7) skipped ---
|
|
|
|
// === /mymodule.ts ===
|
|
// import * as mod from "./indexdef";
|
|
// const instance = new mod.Foo();
|
|
// instance./*GOTO DEF*/[|methodName|]({member: 12}); |