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

17 lines
230 B
TypeScript

// @module: commonjs
// @Filename: foo1.ts
class x{}
export = x;
// @Filename: foo2.ts
import foo1 = require('./foo1');
export = {
x: foo1
}
// @Filename: foo3.ts
import foo2 = require('./foo2')
class x extends foo2.x {}