mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
421 B
TypeScript
25 lines
421 B
TypeScript
//// [tests/cases/compiler/commonJsImportClassExpression.ts] ////
|
|
|
|
//// [mod1.ts]
|
|
export = class {
|
|
chunk = 1
|
|
}
|
|
|
|
//// [use.ts]
|
|
import Chunk = require('./mod1')
|
|
declare var c: Chunk;
|
|
c.chunk;
|
|
|
|
|
|
//// [mod1.js]
|
|
"use strict";
|
|
module.exports = class {
|
|
constructor() {
|
|
this.chunk = 1;
|
|
}
|
|
};
|
|
//// [use.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
c.chunk;
|