mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
53 lines
1022 B
JSON
53 lines
1022 B
JSON
// === goToDefinition ===
|
|
// === /foo.js ===
|
|
// [|function notExported() { }
|
|
// class Blah {
|
|
// abc = 123;
|
|
// }
|
|
// module.exports.Blah = Blah;|]
|
|
|
|
// === /bar.js ===
|
|
// const /*GOTO DEF*/[|BlahModule|] = require("./foo.js");
|
|
// new BlahModule.Blah()
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /foo.js ===
|
|
// [|function notExported() { }
|
|
// class Blah {
|
|
// abc = 123;
|
|
// }
|
|
// module.exports.Blah = Blah;|]
|
|
|
|
// === /bar.js ===
|
|
// const BlahModule = require("./foo.js");
|
|
// new /*GOTO DEF*/[|BlahModule|].Blah()
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /foo.js ===
|
|
// [|function notExported() { }
|
|
// class Blah {
|
|
// abc = 123;
|
|
// }
|
|
// module.exports.Blah = Blah;|]
|
|
|
|
// === /barTs.ts ===
|
|
// import /*GOTO DEF*/[|BlahModule|] = require("./foo.js");
|
|
// new BlahModule.Blah()
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /foo.js ===
|
|
// [|function notExported() { }
|
|
// class Blah {
|
|
// abc = 123;
|
|
// }
|
|
// module.exports.Blah = Blah;|]
|
|
|
|
// === /barTs.ts ===
|
|
// import BlahModule = require("./foo.js");
|
|
// new /*GOTO DEF*/[|BlahModule|].Blah() |