TypeScript Version: 3.5.1
Search Terms: import, export assignment, export =, call stack
Code
This crashes tsc,
//npm install --save type-mapping@1.1.2
//`ts-node ./index.ts` works fine
//`tsc` gives `Maximum call stack size exceeded`
//`"type-mapping/fluent"` is a file that uses `export =`
//to export an object with many properties
import * as tm from "type-mapping/fluent";
console.log(tm);
This works fine,
//npm install --save type-mapping@1.1.2
//`ts-node ./index.ts` works fine
//`tsc` also works fine
//`"type-mapping"` is a file that uses `export *`
//to export many objects, even more than "type-mapping/fluent"
import * as tm from "type-mapping";
console.log(tm);
Expected behavior:
tsc should compile fine in both cases.
"type-mapping/fluent" uses export = to export a single object with many properties (141 properties).
However, the number of "things" exported is less than the amount exported
by "type-mapping", which uses export * (178, excluding interfaces and typedefs).
So, this makes me suspect that the problem is export =.
However, I simply have to use export = because "type-mapping/fluent" is generating these properties during run-time. (During compile-time, the export is a mapped object type)
Actual behavior:
Maximum call stack size exceeded with "type-mapping/fluent" and export =.
Works fine with "type-mapping" and export *
Related Issues: Not that I could find
TypeScript Version: 3.5.1
Search Terms: import, export assignment,
export =, call stackCode
This crashes
tsc,This works fine,
Expected behavior:
tscshould compile fine in both cases."type-mapping/fluent"usesexport =to export a single object with many properties (141 properties).However, the number of "things" exported is less than the amount exported
by
"type-mapping", which usesexport *(178, excluding interfaces and typedefs).So, this makes me suspect that the problem is
export =.However, I simply have to use
export =because"type-mapping/fluent"is generating these properties during run-time. (During compile-time, the export is a mapped object type)Actual behavior:
Maximum call stack size exceededwith"type-mapping/fluent"andexport =.Works fine with
"type-mapping"andexport *Related Issues: Not that I could find