mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
312 B
TypeScript
16 lines
312 B
TypeScript
// @module: commonjs
|
|
// @declaration: true
|
|
// @checkJs: true
|
|
// @outDir: ./out
|
|
// @filename: a.js
|
|
/**
|
|
* @typedef {{x: string}} Foo
|
|
*/
|
|
module.exports = { a: 1, b: "hello" };
|
|
// @filename: b.js
|
|
const a = require("./a");
|
|
const c1 = a.a;
|
|
const c2 = a.b;
|
|
/** @type {a.Foo} */
|
|
let v1 = { x: "test" };
|