We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
TypeScript Version: 2.4.0
The following things work as expected
export class Test { async LoadSomething() { const something = await import("./something"); } } export async function LoadSomething() { const something = await import("./something"); }
which will generate
new Promise(function (resolve_1, reject_1) { require(["./something"], resolve_1, reject_1); })];
whereas
export = async function() { const something = await import("./something"); }
// A *self-contained* demonstration of the problem follows...
will generate
import("./something")
Expected behavior: Code which is emitted should be
TypeScript Version: 2.4.0
The following things work as expected
which will generate
whereas
// A *self-contained* demonstration of the problem follows...will generate
Expected behavior:
Code which is emitted should be