swc/crates/swc_ecma_parser/tests/tsc/commonJSImportExportedClassExpression.ts

19 lines
269 B
TypeScript
Raw Normal View History

// @allowJs: true
// @checkJs: true
// @strict: true
// @outDir: out
// @declaration: true
// @filename: main.js
const { K } = require("./mod1");
/** @param {K} k */
function f(k) {
k.values()
}
// @filename: mod1.js
exports.K = class K {
values() {
}
};