mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
706 B
JSON
25 lines
706 B
JSON
// === goToSourceDefinition ===
|
|
// === /home/src/workspaces/project/node_modules/pkg/index.js ===
|
|
// <|export class [|Widget|] {
|
|
// constructor(name) { this.name = name; }
|
|
// render() {}
|
|
// }|>
|
|
|
|
// === /home/src/workspaces/project/index.ts ===
|
|
// import { Widget } from "pkg";
|
|
// const w = new /*GOTO SOURCE DEF*/Widget("test");
|
|
// w.render();
|
|
|
|
|
|
|
|
// === goToSourceDefinition ===
|
|
// === /home/src/workspaces/project/node_modules/pkg/index.js ===
|
|
// export class Widget {
|
|
// constructor(name) { this.name = name; }
|
|
// <|[|render|]() {}|>
|
|
// }
|
|
|
|
// === /home/src/workspaces/project/index.ts ===
|
|
// import { Widget } from "pkg";
|
|
// const w = new Widget("test");
|
|
// w./*GOTO SOURCE DEF*/render(); |