905f9a02ad
* Make `module.export =` an alias like `export=` is This breaks a couple of tests for previous workarounds. Fix in upcoming commits. * Basically fixes all the breaks, but needs cleanup * More notes to myself * Clean up TODOs * Call mergeSymbolTable and delete export= afterward instead of basically copying the code myself. * More cleanup * Remove unnecessary check in import type checking * Revert to DIY code. It is more correct and will go away in a few days. * Exported class expressions can be used as type In both JS and TS * Do not require named class expressions
10 lines
141 B
TypeScript
10 lines
141 B
TypeScript
// @Filename: mod1.ts
|
|
export = class {
|
|
chunk = 1
|
|
}
|
|
|
|
// @Filename: use.ts
|
|
import Chunk = require('./mod1')
|
|
declare var c: Chunk;
|
|
c.chunk;
|